home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1994-05-02 | 14.2 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v19 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 53 75 6e 20 | 4d 61 79 20 20 31 20 31 | on Sun |May 1 1|
|00000040| 39 3a 30 35 3a 31 39 20 | 31 39 39 34 0a 3b 3b 3b |9:05:19 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 68 6f 6d 65 | from fi|le /home|
|00000060| 2f 66 73 66 2f 72 6d 73 | 2f 65 31 39 2f 6c 69 73 |/fsf/rms|/e19/lis|
|00000070| 70 2f 72 65 70 6c 61 63 | 65 2e 65 6c 0a 3b 3b 3b |p/replac|e.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 32 32 2e 39 31 2e | 35 2e 0a 3b 3b 3b 20 62 |9.22.91.|5..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 22 | 29 29 29 0a 20 20 20 20 |ion "19"|))). |
|00000190| 28 65 72 72 6f 72 20 22 | 60 2f 68 6f 6d 65 2f 66 |(error "|`/home/f|
|000001a0| 73 66 2f 72 6d 73 2f 65 | 31 39 2f 6c 69 73 70 2f |sf/rms/e|19/lisp/|
|000001b0| 72 65 70 6c 61 63 65 2e | 65 6c 27 20 77 61 73 20 |replace.|el' was |
|000001c0| 63 6f 6d 70 69 6c 65 64 | 20 66 6f 72 20 45 6d 61 |compiled| for Ema|
|000001d0| 63 73 20 31 39 22 29 29 | 0a 0a 28 64 65 66 63 6f |cs 19"))|..(defco|
|000001e0| 6e 73 74 20 63 61 73 65 | 2d 72 65 70 6c 61 63 65 |nst case|-replace|
|000001f0| 20 74 20 22 5c 0a 2a 4e | 6f 6e 2d 6e 69 6c 20 6d | t "\.*N|on-nil m|
|00000200| 65 61 6e 73 20 71 75 65 | 72 79 2d 72 65 70 6c 61 |eans que|ry-repla|
|00000210| 63 65 20 73 68 6f 75 6c | 64 20 70 72 65 73 65 72 |ce shoul|d preser|
|00000220| 76 65 20 63 61 73 65 20 | 69 6e 20 72 65 70 6c 61 |ve case |in repla|
|00000230| 63 65 6d 65 6e 74 73 2e | 22 29 0a 28 62 79 74 65 |cements.|").(byte|
|00000240| 2d 63 6f 64 65 20 22 c0 | c1 21 84 08 00 c2 11 c3 |-code ".|.!......|
|00000250| c4 c5 5c 22 87 22 20 5b | 62 6f 75 6e 64 70 20 71 |..\"." [|boundp q|
|00000260| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 2d 68 69 73 |uery-rep|lace-his|
|00000270| 74 6f 72 79 20 6e 69 6c | 20 64 65 66 61 6c 69 61 |tory nil| defalia|
|00000280| 73 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 2d |s query-|replace-|
|00000290| 72 65 61 64 2d 61 72 67 | 73 20 23 5b 28 73 74 72 |read-arg|s #[(str|
|000002a0| 69 6e 67 29 20 22 c0 89 | 19 1a c3 c4 c5 0e 06 5c |ing) "..|.......\|
|000002b0| 22 c0 89 89 c7 25 12 c3 | c4 c8 0e 06 5c 6e 23 c0 |"....%..|....\n#.|
|000002c0| 89 89 c7 25 11 5c 6e 09 | 0e 09 45 2a 87 22 20 5b |...%.\n.|..E*." [|
|000002d0| 6e 69 6c 20 74 6f 20 66 | 72 6f 6d 20 72 65 61 64 |nil to f|rom read|
|000002e0| 2d 66 72 6f 6d 2d 6d 69 | 6e 69 62 75 66 66 65 72 |-from-mi|nibuffer|
|000002f0| 20 66 6f 72 6d 61 74 20 | 22 25 73 3a 20 22 20 73 | format |"%s: " s|
|00000300| 74 72 69 6e 67 20 71 75 | 65 72 79 2d 72 65 70 6c |tring qu|ery-repl|
|00000310| 61 63 65 2d 68 69 73 74 | 6f 72 79 20 22 25 73 20 |ace-hist|ory "%s |
|00000320| 25 73 20 77 69 74 68 3a | 20 22 20 63 75 72 72 65 |%s with:| " curre|
|00000330| 6e 74 2d 70 72 65 66 69 | 78 2d 61 72 67 5d 20 36 |nt-prefi|x-arg] 6|
|00000340| 5d 5d 20 33 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |]] 3).(d|efalias |
|00000350| 27 71 75 65 72 79 2d 72 | 65 70 6c 61 63 65 20 23 |'query-r|eplace #|
|00000360| 5b 28 66 72 6f 6d 2d 73 | 74 72 69 6e 67 20 74 6f |[(from-s|tring to|
|00000370| 2d 73 74 72 69 6e 67 20 | 26 6f 70 74 69 6f 6e 61 |-string |&optiona|
|00000380| 6c 20 61 72 67 29 20 22 | c0 09 5c 6e c3 c4 0d 25 |l arg) "|..\n...%|
|00000390| 88 0e 06 86 10 00 c7 c8 | 21 87 22 20 5b 70 65 72 |........|!." [per|
|000003a0| 66 6f 72 6d 2d 72 65 70 | 6c 61 63 65 20 66 72 6f |form-rep|lace fro|
|000003b0| 6d 2d 73 74 72 69 6e 67 | 20 74 6f 2d 73 74 72 69 |m-string| to-stri|
|000003c0| 6e 67 20 74 20 6e 69 6c | 20 61 72 67 20 75 6e 72 |ng t nil| arg unr|
|000003d0| 65 61 64 2d 63 6f 6d 6d | 61 6e 64 2d 65 76 65 6e |ead-comm|and-even|
|000003e0| 74 73 20 6d 65 73 73 61 | 67 65 20 22 44 6f 6e 65 |ts messa|ge "Done|
|000003f0| 22 5d 20 36 20 22 5c 0a | 52 65 70 6c 61 63 65 20 |"] 6 "\.|Replace |
|00000400| 73 6f 6d 65 20 6f 63 63 | 75 72 72 65 6e 63 65 73 |some occ|urrences|
|00000410| 20 6f 66 20 46 52 4f 4d | 2d 53 54 52 49 4e 47 20 | of FROM|-STRING |
|00000420| 77 69 74 68 20 54 4f 2d | 53 54 52 49 4e 47 2e 0a |with TO-|STRING..|
|00000430| 41 73 20 65 61 63 68 20 | 6d 61 74 63 68 20 69 73 |As each |match is|
|00000440| 20 66 6f 75 6e 64 2c 20 | 74 68 65 20 75 73 65 72 | found, |the user|
|00000450| 20 6d 75 73 74 20 74 79 | 70 65 20 61 20 63 68 61 | must ty|pe a cha|
|00000460| 72 61 63 74 65 72 20 73 | 61 79 69 6e 67 0a 77 68 |racter s|aying.wh|
|00000470| 61 74 20 74 6f 20 64 6f | 20 77 69 74 68 20 69 74 |at to do| with it|
|00000480| 2e 20 20 46 6f 72 20 64 | 69 72 65 63 74 69 6f 6e |. For d|irection|
|00000490| 73 2c 20 74 79 70 65 20 | 5c 5c 5b 68 65 6c 70 2d |s, type |\\[help-|
|000004a0| 63 6f 6d 6d 61 6e 64 5d | 20 61 74 20 74 68 61 74 |command]| at that|
|000004b0| 20 74 69 6d 65 2e 0a 0a | 50 72 65 73 65 72 76 65 | time...|Preserve|
|000004c0| 73 20 63 61 73 65 20 69 | 6e 20 65 61 63 68 20 72 |s case i|n each r|
|000004d0| 65 70 6c 61 63 65 6d 65 | 6e 74 20 69 66 20 60 63 |eplaceme|nt if `c|
|000004e0| 61 73 65 2d 72 65 70 6c | 61 63 65 27 20 61 6e 64 |ase-repl|ace' and|
|000004f0| 20 60 63 61 73 65 2d 66 | 6f 6c 64 2d 73 65 61 72 | `case-f|old-sear|
|00000500| 63 68 27 0a 61 72 65 20 | 6e 6f 6e 2d 6e 69 6c 20 |ch'.are |non-nil |
|00000510| 61 6e 64 20 46 52 4f 4d | 2d 53 54 52 49 4e 47 20 |and FROM|-STRING |
|00000520| 68 61 73 20 6e 6f 20 75 | 70 70 65 72 63 61 73 65 |has no u|ppercase|
|00000530| 20 6c 65 74 74 65 72 73 | 2e 0a 54 68 69 72 64 20 | letters|..Third |
|00000540| 61 72 67 20 44 45 4c 49 | 4d 49 54 45 44 20 28 70 |arg DELI|MITED (p|
|00000550| 72 65 66 69 78 20 61 72 | 67 20 69 66 20 69 6e 74 |refix ar|g if int|
|00000560| 65 72 61 63 74 69 76 65 | 29 2c 20 69 66 20 6e 6f |eractive|), if no|
|00000570| 6e 2d 6e 69 6c 2c 20 6d | 65 61 6e 73 20 72 65 70 |n-nil, m|eans rep|
|00000580| 6c 61 63 65 0a 6f 6e 6c | 79 20 6d 61 74 63 68 65 |lace.onl|y matche|
|00000590| 73 20 73 75 72 72 6f 75 | 6e 64 65 64 20 62 79 20 |s surrou|nded by |
|000005a0| 77 6f 72 64 20 62 6f 75 | 6e 64 61 72 69 65 73 2e |word bou|ndaries.|
|000005b0| 0a 0a 54 6f 20 63 75 73 | 74 6f 6d 69 7a 65 20 70 |..To cus|tomize p|
|000005c0| 6f 73 73 69 62 6c 65 20 | 72 65 73 70 6f 6e 73 65 |ossible |response|
|000005d0| 73 2c 20 63 68 61 6e 67 | 65 20 74 68 65 20 5c 22 |s, chang|e the \"|
|000005e0| 62 69 6e 64 69 6e 67 73 | 5c 22 20 69 6e 20 60 71 |bindings|\" in `q|
|000005f0| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 2d 6d 61 70 |uery-rep|lace-map|
|00000600| 27 2e 22 20 28 71 75 65 | 72 79 2d 72 65 70 6c 61 |'." (que|ry-repla|
|00000610| 63 65 2d 72 65 61 64 2d | 61 72 67 73 20 22 51 75 |ce-read-|args "Qu|
|00000620| 65 72 79 20 72 65 70 6c | 61 63 65 22 29 5d 29 0a |ery repl|ace")]).|
|00000630| 28 64 65 66 69 6e 65 2d | 6b 65 79 20 65 73 63 2d |(define-|key esc-|
|00000640| 6d 61 70 20 22 25 22 20 | 28 71 75 6f 74 65 20 71 |map "%" |(quote q|
|00000650| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 29 29 0a 28 |uery-rep|lace)).(|
|00000660| 64 65 66 61 6c 69 61 73 | 20 27 71 75 65 72 79 2d |defalias| 'query-|
|00000670| 72 65 70 6c 61 63 65 2d | 72 65 67 65 78 70 20 23 |replace-|regexp #|
|00000680| 5b 28 72 65 67 65 78 70 | 20 74 6f 2d 73 74 72 69 |[(regexp| to-stri|
|00000690| 6e 67 20 26 6f 70 74 69 | 6f 6e 61 6c 20 61 72 67 |ng &opti|onal arg|
|000006a0| 29 20 22 c0 09 5c 6e c3 | 89 5c 66 25 88 0d 86 0f |) "..\n.|.\f%....|
|000006b0| 00 c6 c7 21 87 22 20 5b | 70 65 72 66 6f 72 6d 2d |...!." [|perform-|
|000006c0| 72 65 70 6c 61 63 65 20 | 72 65 67 65 78 70 20 74 |replace |regexp t|
|000006d0| 6f 2d 73 74 72 69 6e 67 | 20 74 20 61 72 67 20 75 |o-string| t arg u|
|000006e0| 6e 72 65 61 64 2d 63 6f | 6d 6d 61 6e 64 2d 65 76 |nread-co|mmand-ev|
|000006f0| 65 6e 74 73 20 6d 65 73 | 73 61 67 65 20 22 44 6f |ents mes|sage "Do|
|00000700| 6e 65 22 5d 20 36 20 22 | 5c 0a 52 65 70 6c 61 63 |ne"] 6 "|\.Replac|
|00000710| 65 20 73 6f 6d 65 20 74 | 68 69 6e 67 73 20 61 66 |e some t|hings af|
|00000720| 74 65 72 20 70 6f 69 6e | 74 20 6d 61 74 63 68 69 |ter poin|t matchi|
|00000730| 6e 67 20 52 45 47 45 58 | 50 20 77 69 74 68 20 54 |ng REGEX|P with T|
|00000740| 4f 2d 53 54 52 49 4e 47 | 2e 0a 41 73 20 65 61 63 |O-STRING|..As eac|
|00000750| 68 20 6d 61 74 63 68 20 | 69 73 20 66 6f 75 6e 64 |h match |is found|
|00000760| 2c 20 74 68 65 20 75 73 | 65 72 20 6d 75 73 74 20 |, the us|er must |
|00000770| 74 79 70 65 20 61 20 63 | 68 61 72 61 63 74 65 72 |type a c|haracter|
|00000780| 20 73 61 79 69 6e 67 0a | 77 68 61 74 20 74 6f 20 | saying.|what to |
|00000790| 64 6f 20 77 69 74 68 20 | 69 74 2e 20 20 46 6f 72 |do with |it. For|
|000007a0| 20 64 69 72 65 63 74 69 | 6f 6e 73 2c 20 74 79 70 | directi|ons, typ|
|000007b0| 65 20 5c 5c 5b 68 65 6c | 70 2d 63 6f 6d 6d 61 6e |e \\[hel|p-comman|
|000007c0| 64 5d 20 61 74 20 74 68 | 61 74 20 74 69 6d 65 2e |d] at th|at time.|
|000007d0| 0a 0a 50 72 65 73 65 72 | 76 65 73 20 63 61 73 65 |..Preser|ves case|
|000007e0| 20 69 6e 20 65 61 63 68 | 20 72 65 70 6c 61 63 65 | in each| replace|
|000007f0| 6d 65 6e 74 20 69 66 20 | 60 63 61 73 65 2d 72 65 |ment if |`case-re|
|00000800| 70 6c 61 63 65 27 20 61 | 6e 64 20 60 63 61 73 65 |place' a|nd `case|
|00000810| 2d 66 6f 6c 64 2d 73 65 | 61 72 63 68 27 0a 61 72 |-fold-se|arch'.ar|
|00000820| 65 20 6e 6f 6e 2d 6e 69 | 6c 20 61 6e 64 20 52 45 |e non-ni|l and RE|
|00000830| 47 45 58 50 20 68 61 73 | 20 6e 6f 20 75 70 70 65 |GEXP has| no uppe|
|00000840| 72 63 61 73 65 20 6c 65 | 74 74 65 72 73 2e 0a 54 |rcase le|tters..T|
|00000850| 68 69 72 64 20 61 72 67 | 20 44 45 4c 49 4d 49 54 |hird arg| DELIMIT|
|00000860| 45 44 20 28 70 72 65 66 | 69 78 20 61 72 67 20 69 |ED (pref|ix arg i|
|00000870| 66 20 69 6e 74 65 72 61 | 63 74 69 76 65 29 2c 20 |f intera|ctive), |
|00000880| 69 66 20 6e 6f 6e 2d 6e | 69 6c 2c 20 6d 65 61 6e |if non-n|il, mean|
|00000890| 73 20 72 65 70 6c 61 63 | 65 0a 6f 6e 6c 79 20 6d |s replac|e.only m|
|000008a0| 61 74 63 68 65 73 20 73 | 75 72 72 6f 75 6e 64 65 |atches s|urrounde|
|000008b0| 64 20 62 79 20 77 6f 72 | 64 20 62 6f 75 6e 64 61 |d by wor|d bounda|
|000008c0| 72 69 65 73 2e 0a 49 6e | 20 54 4f 2d 53 54 52 49 |ries..In| TO-STRI|
|000008d0| 4e 47 2c 20 60 5c 5c 26 | 27 20 73 74 61 6e 64 73 |NG, `\\&|' stands|
|000008e0| 20 66 6f 72 20 77 68 61 | 74 65 76 65 72 20 6d 61 | for wha|tever ma|
|000008f0| 74 63 68 65 64 20 74 68 | 65 20 77 68 6f 6c 65 20 |tched th|e whole |
|00000900| 6f 66 20 52 45 47 45 58 | 50 2c 0a 61 6e 64 20 60 |of REGEX|P,.and `|
|00000910| 5c 5c 3d 5c 5c 4e 27 20 | 28 77 68 65 72 65 20 4e |\\=\\N' |(where N|
|00000920| 20 69 73 20 61 20 64 69 | 67 69 74 29 20 73 74 61 | is a di|git) sta|
|00000930| 6e 64 73 20 66 6f 72 0a | 20 77 68 61 74 65 76 65 |nds for.| whateve|
|00000940| 72 20 77 68 61 74 20 6d | 61 74 63 68 65 64 20 74 |r what m|atched t|
|00000950| 68 65 20 4e 74 68 20 60 | 5c 5c 28 2e 2e 2e 5c 5c |he Nth `|\\(...\\|
|00000960| 29 27 20 69 6e 20 52 45 | 47 45 58 50 2e 22 20 28 |)' in RE|GEXP." (|
|00000970| 71 75 65 72 79 2d 72 65 | 70 6c 61 63 65 2d 72 65 |query-re|place-re|
|00000980| 61 64 2d 61 72 67 73 20 | 22 51 75 65 72 79 20 72 |ad-args |"Query r|
|00000990| 65 70 6c 61 63 65 20 72 | 65 67 65 78 70 22 29 5d |eplace r|egexp")]|
|000009a0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 6d 61 70 |).(defal|ias 'map|
|000009b0| 2d 71 75 65 72 79 2d 72 | 65 70 6c 61 63 65 2d 72 |-query-r|eplace-r|
|000009c0| 65 67 65 78 70 20 23 5b | 28 72 65 67 65 78 70 20 |egexp #[|(regexp |
|000009d0| 74 6f 2d 73 74 72 69 6e | 67 73 20 26 6f 70 74 69 |to-strin|gs &opti|
|000009e0| 6f 6e 61 6c 20 61 72 67 | 29 20 22 c0 19 5c 6e 3c |onal arg|) "..\n<|
|000009f0| 83 5c 66 00 5c 6e 11 82 | 3f 00 5c 6e 47 c3 55 84 |.\f.\n..|?.\nG.U.|
|00000a00| 3f 00 c4 c5 5c 6e 5c 22 | 83 33 00 c6 09 5c 6e c3 |?...\n\"|.3...\n.|
|00000a10| c4 c5 5c 6e 5c 22 4f 43 | 5c 22 11 5c 6e c4 c5 5c |..\n\"OC|\".\n..\|
|00000a20| 6e 5c 22 54 c0 4f 89 12 | 82 0d 00 c6 09 5c 6e 43 |n\"T.O..|.....\nC|
|00000a30| 5c 22 11 c7 89 12 82 0d | 00 c8 0e 09 09 ca 89 c0 |\"......|........|
|00000a40| 0e 0b 26 06 88 29 0e 5c | 66 86 54 00 cd ce 21 87 |..&..).\|f.T...!.|
|00000a50| 22 20 5b 6e 69 6c 20 72 | 65 70 6c 61 63 65 6d 65 |" [nil r|eplaceme|
|00000a60| 6e 74 73 20 74 6f 2d 73 | 74 72 69 6e 67 73 20 30 |nts to-s|trings 0|
|00000a70| 20 73 74 72 69 6e 67 2d | 6d 61 74 63 68 20 22 20 | string-|match " |
|00000a80| 22 20 61 70 70 65 6e 64 | 20 22 22 20 70 65 72 66 |" append| "" perf|
|00000a90| 6f 72 6d 2d 72 65 70 6c | 61 63 65 20 72 65 67 65 |orm-repl|ace rege|
|00000aa0| 78 70 20 74 20 61 72 67 | 20 75 6e 72 65 61 64 2d |xp t arg| unread-|
|00000ab0| 63 6f 6d 6d 61 6e 64 2d | 65 76 65 6e 74 73 20 6d |command-|events m|
|00000ac0| 65 73 73 61 67 65 20 22 | 44 6f 6e 65 22 5d 20 38 |essage "|Done"] 8|
|00000ad0| 20 22 5c 0a 52 65 70 6c | 61 63 65 20 73 6f 6d 65 | "\.Repl|ace some|
|00000ae0| 20 6d 61 74 63 68 65 73 | 20 66 6f 72 20 52 45 47 | matches| for REG|
|00000af0| 45 58 50 20 77 69 74 68 | 20 76 61 72 69 6f 75 73 |EXP with| various|
|00000b00| 20 73 74 72 69 6e 67 73 | 2c 20 69 6e 20 72 6f 74 | strings|, in rot|
|00000b10| 61 74 69 6f 6e 2e 0a 54 | 68 65 20 73 65 63 6f 6e |ation..T|he secon|
|00000b20| 64 20 61 72 67 75 6d 65 | 6e 74 20 54 4f 2d 53 54 |d argume|nt TO-ST|
|00000b30| 52 49 4e 47 53 20 63 6f | 6e 74 61 69 6e 73 20 74 |RINGS co|ntains t|
|00000b40| 68 65 20 72 65 70 6c 61 | 63 65 6d 65 6e 74 20 73 |he repla|cement s|
|00000b50| 74 72 69 6e 67 73 2c 20 | 73 65 70 61 72 61 74 65 |trings, |separate|
|00000b60| 64 0a 62 79 20 73 70 61 | 63 65 73 2e 20 20 54 68 |d.by spa|ces. Th|
|00000b70| 69 73 20 63 6f 6d 6d 61 | 6e 64 20 77 6f 72 6b 73 |is comma|nd works|
|00000b80| 20 6c 69 6b 65 20 60 71 | 75 65 72 79 2d 72 65 70 | like `q|uery-rep|
|00000b90| 6c 61 63 65 2d 72 65 67 | 65 78 70 27 20 65 78 63 |lace-reg|exp' exc|
|00000ba0| 65 70 74 0a 74 68 61 74 | 20 65 61 63 68 20 73 75 |ept.that| each su|
|00000bb0| 63 63 65 73 73 69 76 65 | 20 72 65 70 6c 61 63 65 |ccessive| replace|
|00000bc0| 6d 65 6e 74 20 75 73 65 | 73 20 74 68 65 20 6e 65 |ment use|s the ne|
|00000bd0| 78 74 20 73 75 63 63 65 | 73 73 69 76 65 20 72 65 |xt succe|ssive re|
|00000be0| 70 6c 61 63 65 6d 65 6e | 74 20 73 74 72 69 6e 67 |placemen|t string|
|00000bf0| 2c 0a 77 72 61 70 70 69 | 6e 67 20 61 72 6f 75 6e |,.wrappi|ng aroun|
|00000c00| 64 20 66 72 6f 6d 20 74 | 68 65 20 6c 61 73 74 20 |d from t|he last |
|00000c10| 73 75 63 68 20 73 74 72 | 69 6e 67 20 74 6f 20 74 |such str|ing to t|
|00000c20| 68 65 20 66 69 72 73 74 | 2e 0a 0a 4e 6f 6e 2d 69 |he first|...Non-i|
|00000c30| 6e 74 65 72 61 63 74 69 | 76 65 6c 79 2c 20 54 4f |nteracti|vely, TO|
|00000c40| 2d 53 54 52 49 4e 47 53 | 20 6d 61 79 20 62 65 20 |-STRINGS| may be |
|00000c50| 61 20 6c 69 73 74 20 6f | 66 20 72 65 70 6c 61 63 |a list o|f replac|
|00000c60| 65 6d 65 6e 74 20 73 74 | 72 69 6e 67 73 2e 0a 0a |ement st|rings...|
|00000c70| 41 20 70 72 65 66 69 78 | 20 61 72 67 75 6d 65 6e |A prefix| argumen|
|00000c80| 74 20 4e 20 73 61 79 73 | 20 74 6f 20 75 73 65 20 |t N says| to use |
|00000c90| 65 61 63 68 20 72 65 70 | 6c 61 63 65 6d 65 6e 74 |each rep|lacement|
|00000ca0| 20 73 74 72 69 6e 67 20 | 4e 20 74 69 6d 65 73 0a | string |N times.|
|00000cb0| 62 65 66 6f 72 65 20 72 | 6f 74 61 74 69 6e 67 20 |before r|otating |
|00000cc0| 74 6f 20 74 68 65 20 6e | 65 78 74 2e 22 20 28 62 |to the n|ext." (b|
|00000cd0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 89 19 1a c3 c4 |yte-code| "......|
|00000ce0| c0 89 89 c5 25 12 c3 c6 | c7 5c 6e 5c 22 c0 89 89 |....%...|.\n\"...|
|00000cf0| c5 25 11 5c 6e 09 0e 08 | 45 2a 87 22 20 5b 6e 69 |.%.\n...|E*." [ni|
|00000d00| 6c 20 74 6f 20 66 72 6f | 6d 20 72 65 61 64 2d 66 |l to fro|m read-f|
|00000d10| 72 6f 6d 2d 6d 69 6e 69 | 62 75 66 66 65 72 20 22 |rom-mini|buffer "|
|00000d20| 4d 61 70 20 71 75 65 72 | 79 20 72 65 70 6c 61 63 |Map quer|y replac|
|00000d30| 65 20 28 72 65 67 65 78 | 70 29 3a 20 22 20 71 75 |e (regex|p): " qu|
|00000d40| 65 72 79 2d 72 65 70 6c | 61 63 65 2d 68 69 73 74 |ery-repl|ace-hist|
|00000d50| 6f 72 79 20 66 6f 72 6d | 61 74 20 22 51 75 65 72 |ory form|at "Quer|
|00000d60| 79 20 72 65 70 6c 61 63 | 65 20 25 73 20 77 69 74 |y replac|e %s wit|
|00000d70| 68 20 28 73 70 61 63 65 | 2d 73 65 70 61 72 61 74 |h (space|-separat|
|00000d80| 65 64 20 73 74 72 69 6e | 67 73 29 3a 20 22 20 63 |ed strin|gs): " c|
|00000d90| 75 72 72 65 6e 74 2d 70 | 72 65 66 69 78 2d 61 72 |urrent-p|refix-ar|
|00000da0| 67 5d 20 36 29 5d 29 0a | 28 64 65 66 61 6c 69 61 |g] 6)]).|(defalia|
|00000db0| 73 20 27 72 65 70 6c 61 | 63 65 2d 73 74 72 69 6e |s 'repla|ce-strin|
|00000dc0| 67 20 23 5b 28 66 72 6f | 6d 2d 73 74 72 69 6e 67 |g #[(fro|m-string|
|00000dd0| 20 74 6f 2d 73 74 72 69 | 6e 67 20 26 6f 70 74 69 | to-stri|ng &opti|
|00000de0| 6f 6e 61 6c 20 64 65 6c | 69 6d 69 74 65 64 29 20 |onal del|imited) |
|00000df0| 22 c0 09 5c 6e c3 89 5c | 66 25 88 0d 86 0f 00 c6 |"..\n..\|f%......|
|00000e00| c7 21 87 22 20 5b 70 65 | 72 66 6f 72 6d 2d 72 65 |.!." [pe|rform-re|
|00000e10| 70 6c 61 63 65 20 66 72 | 6f 6d 2d 73 74 72 69 6e |place fr|om-strin|
|00000e20| 67 20 74 6f 2d 73 74 72 | 69 6e 67 20 6e 69 6c 20 |g to-str|ing nil |
|00000e30| 64 65 6c 69 6d 69 74 65 | 64 20 75 6e 72 65 61 64 |delimite|d unread|
|00000e40| 2d 63 6f 6d 6d 61 6e 64 | 2d 65 76 65 6e 74 73 20 |-command|-events |
|00000e50| 6d 65 73 73 61 67 65 20 | 22 44 6f 6e 65 22 5d 20 |message |"Done"] |
|00000e60| 36 20 22 5c 0a 52 65 70 | 6c 61 63 65 20 6f 63 63 |6 "\.Rep|lace occ|
|00000e70| 75 72 72 65 6e 63 65 73 | 20 6f 66 20 46 52 4f 4d |urrences| of FROM|
|00000e80| 2d 53 54 52 49 4e 47 20 | 77 69 74 68 20 54 4f 2d |-STRING |with TO-|
|00000e90| 53 54 52 49 4e 47 2e 0a | 50 72 65 73 65 72 76 65 |STRING..|Preserve|
|00000ea0| 20 63 61 73 65 20 69 6e | 20 65 61 63 68 20 6d 61 | case in| each ma|
|00000eb0| 74 63 68 20 69 66 20 60 | 63 61 73 65 2d 72 65 70 |tch if `|case-rep|
|00000ec0| 6c 61 63 65 27 20 61 6e | 64 20 60 63 61 73 65 2d |lace' an|d `case-|
|00000ed0| 66 6f 6c 64 2d 73 65 61 | 72 63 68 27 0a 61 72 65 |fold-sea|rch'.are|
|00000ee0| 20 6e 6f 6e 2d 6e 69 6c | 20 61 6e 64 20 46 52 4f | non-nil| and FRO|
|00000ef0| 4d 2d 53 54 52 49 4e 47 | 20 68 61 73 20 6e 6f 20 |M-STRING| has no |
|00000f00| 75 70 70 65 72 63 61 73 | 65 20 6c 65 74 74 65 72 |uppercas|e letter|
|00000f10| 73 2e 0a 54 68 69 72 64 | 20 61 72 67 20 44 45 4c |s..Third| arg DEL|
|00000f20| 49 4d 49 54 45 44 20 28 | 70 72 65 66 69 78 20 61 |IMITED (|prefix a|
|00000f30| 72 67 20 69 66 20 69 6e | 74 65 72 61 63 74 69 76 |rg if in|teractiv|
|00000f40| 65 29 2c 20 69 66 20 6e | 6f 6e 2d 6e 69 6c 2c 20 |e), if n|on-nil, |
|00000f50| 6d 65 61 6e 73 20 72 65 | 70 6c 61 63 65 0a 6f 6e |means re|place.on|
|00000f60| 6c 79 20 6d 61 74 63 68 | 65 73 20 73 75 72 72 6f |ly match|es surro|
|00000f70| 75 6e 64 65 64 20 62 79 | 20 77 6f 72 64 20 62 6f |unded by| word bo|
|00000f80| 75 6e 64 61 72 69 65 73 | 2e 0a 0a 54 68 69 73 20 |undaries|...This |
|00000f90| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 75 73 75 61 |function| is usua|
|00000fa0| 6c 6c 79 20 74 68 65 20 | 77 72 6f 6e 67 20 74 68 |lly the |wrong th|
|00000fb0| 69 6e 67 20 74 6f 20 75 | 73 65 20 69 6e 20 61 20 |ing to u|se in a |
|00000fc0| 4c 69 73 70 20 70 72 6f | 67 72 61 6d 2e 0a 57 68 |Lisp pro|gram..Wh|
|00000fd0| 61 74 20 79 6f 75 20 70 | 72 6f 62 61 62 6c 79 20 |at you p|robably |
|00000fe0| 77 61 6e 74 20 69 73 20 | 61 20 6c 6f 6f 70 20 6c |want is |a loop l|
|00000ff0| 69 6b 65 20 74 68 69 73 | 3a 0a 20 20 28 77 68 69 |ike this|:. (whi|
|00001000| 6c 65 20 28 73 65 61 72 | 63 68 2d 66 6f 72 77 61 |le (sear|ch-forwa|
|00001010| 72 64 20 46 52 4f 4d 2d | 53 54 52 49 4e 47 20 6e |rd FROM-|STRING n|
|00001020| 69 6c 20 74 29 0a 20 20 | 20 20 28 72 65 70 6c 61 |il t). | (repla|
|00001030| 63 65 2d 6d 61 74 63 68 | 20 54 4f 2d 53 54 52 49 |ce-match| TO-STRI|
|00001040| 4e 47 20 6e 69 6c 20 74 | 29 29 0a 77 68 69 63 68 |NG nil t|)).which|
|00001050| 20 77 69 6c 6c 20 72 75 | 6e 20 66 61 73 74 65 72 | will ru|n faster|
|00001060| 20 61 6e 64 20 77 69 6c | 6c 20 6e 6f 74 20 73 65 | and wil|l not se|
|00001070| 74 20 74 68 65 20 6d 61 | 72 6b 20 6f 72 20 70 72 |t the ma|rk or pr|
|00001080| 69 6e 74 20 61 6e 79 74 | 68 69 6e 67 2e 22 20 28 |int anyt|hing." (|
|00001090| 71 75 65 72 79 2d 72 65 | 70 6c 61 63 65 2d 72 65 |query-re|place-re|
|000010a0| 61 64 2d 61 72 67 73 20 | 22 52 65 70 6c 61 63 65 |ad-args |"Replace|
|000010b0| 20 73 74 72 69 6e 67 22 | 29 5d 29 0a 28 64 65 66 | string"|)]).(def|
|000010c0| 61 6c 69 61 73 20 27 72 | 65 70 6c 61 63 65 2d 72 |alias 'r|eplace-r|
|000010d0| 65 67 65 78 70 20 23 5b | 28 72 65 67 65 78 70 20 |egexp #[|(regexp |
|000010e0| 74 6f 2d 73 74 72 69 6e | 67 20 26 6f 70 74 69 6f |to-strin|g &optio|
|000010f0| 6e 61 6c 20 64 65 6c 69 | 6d 69 74 65 64 29 20 22 |nal deli|mited) "|
|00001100| c0 09 5c 6e c3 c4 0d 25 | 88 0e 06 86 10 00 c7 c8 |..\n...%|........|
|00001110| 21 87 22 20 5b 70 65 72 | 66 6f 72 6d 2d 72 65 70 |!." [per|form-rep|
|00001120| 6c 61 63 65 20 72 65 67 | 65 78 70 20 74 6f 2d 73 |lace reg|exp to-s|
|00001130| 74 72 69 6e 67 20 6e 69 | 6c 20 74 20 64 65 6c 69 |tring ni|l t deli|
|00001140| 6d 69 74 65 64 20 75 6e | 72 65 61 64 2d 63 6f 6d |mited un|read-com|
|00001150| 6d 61 6e 64 2d 65 76 65 | 6e 74 73 20 6d 65 73 73 |mand-eve|nts mess|
|00001160| 61 67 65 20 22 44 6f 6e | 65 22 5d 20 36 20 22 5c |age "Don|e"] 6 "\|
|00001170| 0a 52 65 70 6c 61 63 65 | 20 74 68 69 6e 67 73 20 |.Replace| things |
|00001180| 61 66 74 65 72 20 70 6f | 69 6e 74 20 6d 61 74 63 |after po|int matc|
|00001190| 68 69 6e 67 20 52 45 47 | 45 58 50 20 77 69 74 68 |hing REG|EXP with|
|000011a0| 20 54 4f 2d 53 54 52 49 | 4e 47 2e 0a 50 72 65 73 | TO-STRI|NG..Pres|
|000011b0| 65 72 76 65 20 63 61 73 | 65 20 69 6e 20 65 61 63 |erve cas|e in eac|
|000011c0| 68 20 6d 61 74 63 68 20 | 69 66 20 60 63 61 73 65 |h match |if `case|
|000011d0| 2d 72 65 70 6c 61 63 65 | 27 20 61 6e 64 20 60 63 |-replace|' and `c|
|000011e0| 61 73 65 2d 66 6f 6c 64 | 2d 73 65 61 72 63 68 27 |ase-fold|-search'|
|000011f0| 0a 61 72 65 20 6e 6f 6e | 2d 6e 69 6c 20 61 6e 64 |.are non|-nil and|
|00001200| 20 52 45 47 45 58 50 20 | 68 61 73 20 6e 6f 20 75 | REGEXP |has no u|
|00001210| 70 70 65 72 63 61 73 65 | 20 6c 65 74 74 65 72 73 |ppercase| letters|
|00001220| 2e 0a 54 68 69 72 64 20 | 61 72 67 20 44 45 4c 49 |..Third |arg DELI|
|00001230| 4d 49 54 45 44 20 28 70 | 72 65 66 69 78 20 61 72 |MITED (p|refix ar|
|00001240| 67 20 69 66 20 69 6e 74 | 65 72 61 63 74 69 76 65 |g if int|eractive|
|00001250| 29 2c 20 69 66 20 6e 6f | 6e 2d 6e 69 6c 2c 20 6d |), if no|n-nil, m|
|00001260| 65 61 6e 73 20 72 65 70 | 6c 61 63 65 0a 6f 6e 6c |eans rep|lace.onl|
|00001270| 79 20 6d 61 74 63 68 65 | 73 20 73 75 72 72 6f 75 |y matche|s surrou|
|00001280| 6e 64 65 64 20 62 79 20 | 77 6f 72 64 20 62 6f 75 |nded by |word bou|
|00001290| 6e 64 61 72 69 65 73 2e | 0a 49 6e 20 54 4f 2d 53 |ndaries.|.In TO-S|
|000012a0| 54 52 49 4e 47 2c 20 60 | 5c 5c 26 27 20 73 74 61 |TRING, `|\\&' sta|
|000012b0| 6e 64 73 20 66 6f 72 20 | 77 68 61 74 65 76 65 72 |nds for |whatever|
|000012c0| 20 6d 61 74 63 68 65 64 | 20 74 68 65 20 77 68 6f | matched| the who|
|000012d0| 6c 65 20 6f 66 20 52 45 | 47 45 58 50 2c 0a 61 6e |le of RE|GEXP,.an|
|000012e0| 64 20 60 5c 5c 3d 5c 5c | 4e 27 20 28 77 68 65 72 |d `\\=\\|N' (wher|
|000012f0| 65 20 4e 20 69 73 20 61 | 20 64 69 67 69 74 29 20 |e N is a| digit) |
|00001300| 73 74 61 6e 64 73 20 66 | 6f 72 0a 20 77 68 61 74 |stands f|or. what|
|00001310| 65 76 65 72 20 77 68 61 | 74 20 6d 61 74 63 68 65 |ever wha|t matche|
|00001320| 64 20 74 68 65 20 4e 74 | 68 20 60 5c 5c 28 2e 2e |d the Nt|h `\\(..|
|00001330| 2e 5c 5c 29 27 20 69 6e | 20 52 45 47 45 58 50 2e |.\\)' in| REGEXP.|
|00001340| 0a 0a 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |..This f|unction |
|00001350| 69 73 20 75 73 75 61 6c | 6c 79 20 74 68 65 20 77 |is usual|ly the w|
|00001360| 72 6f 6e 67 20 74 68 69 | 6e 67 20 74 6f 20 75 73 |rong thi|ng to us|
|00001370| 65 20 69 6e 20 61 20 4c | 69 73 70 20 70 72 6f 67 |e in a L|isp prog|
|00001380| 72 61 6d 2e 0a 57 68 61 | 74 20 79 6f 75 20 70 72 |ram..Wha|t you pr|
|00001390| 6f 62 61 62 6c 79 20 77 | 61 6e 74 20 69 73 20 61 |obably w|ant is a|
|000013a0| 20 6c 6f 6f 70 20 6c 69 | 6b 65 20 74 68 69 73 3a | loop li|ke this:|
|000013b0| 0a 20 20 28 77 68 69 6c | 65 20 28 72 65 2d 73 65 |. (whil|e (re-se|
|000013c0| 61 72 63 68 2d 66 6f 72 | 77 61 72 64 20 52 45 47 |arch-for|ward REG|
|000013d0| 45 58 50 20 6e 69 6c 20 | 74 29 0a 20 20 20 20 28 |EXP nil |t). (|
|000013e0| 72 65 70 6c 61 63 65 2d | 6d 61 74 63 68 20 54 4f |replace-|match TO|
|000013f0| 2d 53 54 52 49 4e 47 20 | 6e 69 6c 20 6e 69 6c 29 |-STRING |nil nil)|
|00001400| 29 0a 77 68 69 63 68 20 | 77 69 6c 6c 20 72 75 6e |).which |will run|
|00001410| 20 66 61 73 74 65 72 20 | 61 6e 64 20 77 69 6c 6c | faster |and will|
|00001420| 20 6e 6f 74 20 73 65 74 | 20 74 68 65 20 6d 61 72 | not set| the mar|
|00001430| 6b 20 6f 72 20 70 72 69 | 6e 74 20 61 6e 79 74 68 |k or pri|nt anyth|
|00001440| 69 6e 67 2e 22 20 28 71 | 75 65 72 79 2d 72 65 70 |ing." (q|uery-rep|
|00001450| 6c 61 63 65 2d 72 65 61 | 64 2d 61 72 67 73 20 22 |lace-rea|d-args "|
|00001460| 52 65 70 6c 61 63 65 20 | 72 65 67 65 78 70 22 29 |Replace |regexp")|
|00001470| 5d 29 0a 28 64 65 66 76 | 61 72 20 72 65 67 65 78 |]).(defv|ar regex|
|00001480| 70 2d 68 69 73 74 6f 72 | 79 20 6e 69 6c 20 22 5c |p-histor|y nil "\|
|00001490| 0a 48 69 73 74 6f 72 79 | 20 6c 69 73 74 20 66 6f |.History| list fo|
|000014a0| 72 20 73 6f 6d 65 20 63 | 6f 6d 6d 61 6e 64 73 20 |r some c|ommands |
|000014b0| 74 68 61 74 20 72 65 61 | 64 20 72 65 67 75 6c 61 |that rea|d regula|
|000014c0| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 73 2e 22 29 |r expres|sions.")|
|000014d0| 0a 28 64 65 66 61 6c 69 | 61 73 20 28 71 75 6f 74 |.(defali|as (quot|
|000014e0| 65 20 64 65 6c 65 74 65 | 2d 6e 6f 6e 2d 6d 61 74 |e delete|-non-mat|
|000014f0| 63 68 69 6e 67 2d 6c 69 | 6e 65 73 29 20 28 71 75 |ching-li|nes) (qu|
|00001500| 6f 74 65 20 6b 65 65 70 | 2d 6c 69 6e 65 73 29 29 |ote keep|-lines))|
|00001510| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 6b 65 65 70 |.(defali|as 'keep|
|00001520| 2d 6c 69 6e 65 73 20 23 | 5b 28 72 65 67 65 78 70 |-lines #|[(regexp|
|00001530| 29 20 22 8a 6e 84 08 00 | c0 79 88 60 19 6d 3f 85 |) ".n...|.y.`.m?.|
|00001540| 50 00 c2 0b c4 c5 23 84 | 1e 00 09 64 7c 88 82 37 |P.....#.|...d|..7|
|00001550| 00 8a c6 94 62 88 c6 79 | 88 60 29 1e 07 09 0e 07 |....b..y|.`).....|
|00001560| 57 83 36 00 09 0e 07 7c | 88 29 8a c0 79 88 60 29 |W.6....||.)..y.`)|
|00001570| 11 6d 84 5c 6e 00 c6 94 | c6 95 55 83 5c 6e 00 c0 |.m.\n...|..U.\n..|
|00001580| 75 88 82 5c 6e 00 2a 87 | 22 20 5b 31 20 73 74 61 |u..\n.*.|" [1 sta|
|00001590| 72 74 20 72 65 2d 73 65 | 61 72 63 68 2d 66 6f 72 |rt re-se|arch-for|
|000015a0| 77 61 72 64 20 72 65 67 | 65 78 70 20 6e 69 6c 20 |ward reg|exp nil |
|000015b0| 6d 6f 76 65 20 30 20 65 | 6e 64 5d 20 34 20 22 5c |move 0 e|nd] 4 "\|
|000015c0| 0a 44 65 6c 65 74 65 20 | 61 6c 6c 20 6c 69 6e 65 |.Delete |all line|
|000015d0| 73 20 65 78 63 65 70 74 | 20 74 68 6f 73 65 20 63 |s except| those c|
|000015e0| 6f 6e 74 61 69 6e 69 6e | 67 20 6d 61 74 63 68 65 |ontainin|g matche|
|000015f0| 73 20 66 6f 72 20 52 45 | 47 45 58 50 2e 0a 41 20 |s for RE|GEXP..A |
|00001600| 6d 61 74 63 68 20 73 70 | 6c 69 74 20 61 63 72 6f |match sp|lit acro|
|00001610| 73 73 20 6c 69 6e 65 73 | 20 70 72 65 73 65 72 76 |ss lines| preserv|
|00001620| 65 73 20 61 6c 6c 20 74 | 68 65 20 6c 69 6e 65 73 |es all t|he lines|
|00001630| 20 69 74 20 6c 69 65 73 | 20 69 6e 2e 0a 41 70 70 | it lies| in..App|
|00001640| 6c 69 65 73 20 74 6f 20 | 61 6c 6c 20 6c 69 6e 65 |lies to |all line|
|00001650| 73 20 61 66 74 65 72 20 | 70 6f 69 6e 74 2e 22 20 |s after |point." |
|00001660| 28 6c 69 73 74 20 28 72 | 65 61 64 2d 66 72 6f 6d |(list (r|ead-from|
|00001670| 2d 6d 69 6e 69 62 75 66 | 66 65 72 20 22 4b 65 65 |-minibuf|fer "Kee|
|00001680| 70 20 6c 69 6e 65 73 20 | 28 63 6f 6e 74 61 69 6e |p lines |(contain|
|00001690| 69 6e 67 20 6d 61 74 63 | 68 20 66 6f 72 20 72 65 |ing matc|h for re|
|000016a0| 67 65 78 70 29 3a 20 22 | 20 6e 69 6c 20 6e 69 6c |gexp): "| nil nil|
|000016b0| 20 6e 69 6c 20 28 71 75 | 6f 74 65 20 72 65 67 65 | nil (qu|ote rege|
|000016c0| 78 70 2d 68 69 73 74 6f | 72 79 29 29 29 5d 29 0a |xp-histo|ry)))]).|
|000016d0| 28 64 65 66 61 6c 69 61 | 73 20 28 71 75 6f 74 65 |(defalia|s (quote|
|000016e0| 20 64 65 6c 65 74 65 2d | 6d 61 74 63 68 69 6e 67 | delete-|matching|
|000016f0| 2d 6c 69 6e 65 73 29 20 | 28 71 75 6f 74 65 20 66 |-lines) |(quote f|
|00001700| 6c 75 73 68 2d 6c 69 6e | 65 73 29 29 0a 28 64 65 |lush-lin|es)).(de|
|00001710| 66 61 6c 69 61 73 20 27 | 66 6c 75 73 68 2d 6c 69 |falias '|flush-li|
|00001720| 6e 65 73 20 23 5b 28 72 | 65 67 65 78 70 29 20 22 |nes #[(r|egexp) "|
|00001730| 8a 6d 3f 85 21 00 c0 09 | c2 c3 23 85 21 00 8a c4 |.m?.!...|..#.!...|
|00001740| 94 62 88 c4 79 88 60 29 | c5 79 88 60 7c 88 82 01 |.b..y.`)|.y.`|...|
|00001750| 00 29 87 22 20 5b 72 65 | 2d 73 65 61 72 63 68 2d |.)." [re|-search-|
|00001760| 66 6f 72 77 61 72 64 20 | 72 65 67 65 78 70 20 6e |forward |regexp n|
|00001770| 69 6c 20 74 20 30 20 31 | 5d 20 34 20 22 5c 0a 44 |il t 0 1|] 4 "\.D|
|00001780| 65 6c 65 74 65 20 6c 69 | 6e 65 73 20 63 6f 6e 74 |elete li|nes cont|
|00001790| 61 69 6e 69 6e 67 20 6d | 61 74 63 68 65 73 20 66 |aining m|atches f|
|000017a0| 6f 72 20 52 45 47 45 58 | 50 2e 0a 49 66 20 61 20 |or REGEX|P..If a |
|000017b0| 6d 61 74 63 68 20 69 73 | 20 73 70 6c 69 74 20 61 |match is| split a|
|000017c0| 63 72 6f 73 73 20 6c 69 | 6e 65 73 2c 20 61 6c 6c |cross li|nes, all|
|000017d0| 20 74 68 65 20 6c 69 6e | 65 73 20 69 74 20 6c 69 | the lin|es it li|
|000017e0| 65 73 20 69 6e 20 61 72 | 65 20 64 65 6c 65 74 65 |es in ar|e delete|
|000017f0| 64 2e 0a 41 70 70 6c 69 | 65 73 20 74 6f 20 6c 69 |d..Appli|es to li|
|00001800| 6e 65 73 20 61 66 74 65 | 72 20 70 6f 69 6e 74 2e |nes afte|r point.|
|00001810| 22 20 28 6c 69 73 74 20 | 28 72 65 61 64 2d 66 72 |" (list |(read-fr|
|00001820| 6f 6d 2d 6d 69 6e 69 62 | 75 66 66 65 72 20 22 46 |om-minib|uffer "F|
|00001830| 6c 75 73 68 20 6c 69 6e | 65 73 20 28 63 6f 6e 74 |lush lin|es (cont|
|00001840| 61 69 6e 69 6e 67 20 6d | 61 74 63 68 20 66 6f 72 |aining m|atch for|
|00001850| 20 72 65 67 65 78 70 29 | 3a 20 22 20 6e 69 6c 20 | regexp)|: " nil |
|00001860| 6e 69 6c 20 6e 69 6c 20 | 28 71 75 6f 74 65 20 72 |nil nil |(quote r|
|00001870| 65 67 65 78 70 2d 68 69 | 73 74 6f 72 79 29 29 29 |egexp-hi|story)))|
|00001880| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 28 71 75 |]).(defa|lias (qu|
|00001890| 6f 74 65 20 63 6f 75 6e | 74 2d 6d 61 74 63 68 65 |ote coun|t-matche|
|000018a0| 73 29 20 28 71 75 6f 74 | 65 20 68 6f 77 2d 6d 61 |s) (quot|e how-ma|
|000018b0| 6e 79 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ny)).(de|falias '|
|000018c0| 68 6f 77 2d 6d 61 6e 79 | 20 23 5b 28 72 65 67 65 |how-many| #[(rege|
|000018d0| 78 70 29 20 22 c0 c1 1a | 1b 8a 6d 84 25 00 60 12 |xp) "...|..m.%.`.|
|000018e0| c4 0d c1 c6 23 83 25 00 | 5c 6e 60 55 83 1f 00 c7 |....#.%.|\n`U....|
|000018f0| 75 88 82 05 00 0b 54 13 | 82 05 00 c8 c9 0b 5c 22 |u.....T.|......\"|
|00001900| 2b 87 22 20 5b 30 20 6e | 69 6c 20 6f 70 6f 69 6e |+." [0 n|il opoin|
|00001910| 74 20 63 6f 75 6e 74 20 | 72 65 2d 73 65 61 72 63 |t count |re-searc|
|00001920| 68 2d 66 6f 72 77 61 72 | 64 20 72 65 67 65 78 70 |h-forwar|d regexp|
|00001930| 20 74 20 31 20 6d 65 73 | 73 61 67 65 20 22 25 64 | t 1 mes|sage "%d|
|00001940| 20 6f 63 63 75 72 72 65 | 6e 63 65 73 22 5d 20 34 | occurre|nces"] 4|
|00001950| 20 22 5c 0a 50 72 69 6e | 74 20 6e 75 6d 62 65 72 | "\.Prin|t number|
|00001960| 20 6f 66 20 6d 61 74 63 | 68 65 73 20 66 6f 72 20 | of matc|hes for |
|00001970| 52 45 47 45 58 50 20 66 | 6f 6c 6c 6f 77 69 6e 67 |REGEXP f|ollowing|
|00001980| 20 70 6f 69 6e 74 2e 22 | 20 28 6c 69 73 74 20 28 | point."| (list (|
|00001990| 72 65 61 64 2d 66 72 6f | 6d 2d 6d 69 6e 69 62 75 |read-fro|m-minibu|
|000019a0| 66 66 65 72 20 22 48 6f | 77 20 6d 61 6e 79 20 6d |ffer "Ho|w many m|
|000019b0| 61 74 63 68 65 73 20 66 | 6f 72 20 28 72 65 67 65 |atches f|or (rege|
|000019c0| 78 70 29 3a 20 22 20 6e | 69 6c 20 6e 69 6c 20 6e |xp): " n|il nil n|
|000019d0| 69 6c 20 28 71 75 6f 74 | 65 20 72 65 67 65 78 70 |il (quot|e regexp|
|000019e0| 2d 68 69 73 74 6f 72 79 | 29 29 29 5d 29 0a 28 62 |-history|)))]).(b|
|000019f0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 c1 21 84 08 00 |yte-code| "..!...|
|00001a00| c2 11 09 84 1b 00 c3 20 | 11 c4 09 c5 c6 23 88 c4 |....... |.....#..|
|00001a10| 09 c7 c8 23 88 c0 c9 21 | 84 24 00 c2 16 09 c0 ca |...#...!|.$......|
|00001a20| 21 84 2d 00 c2 16 5c 6e | c0 cb 21 84 36 00 c2 16 |!.-...\n|..!.6...|
|00001a30| 0b c2 87 22 20 5b 62 6f | 75 6e 64 70 20 6f 63 63 |..." [bo|undp occ|
|00001a40| 75 72 2d 6d 6f 64 65 2d | 6d 61 70 20 6e 69 6c 20 |ur-mode-|map nil |
|00001a50| 6d 61 6b 65 2d 73 70 61 | 72 73 65 2d 6b 65 79 6d |make-spa|rse-keym|
|00001a60| 61 70 20 64 65 66 69 6e | 65 2d 6b 65 79 20 5b 6d |ap defin|e-key [m|
|00001a70| 6f 75 73 65 2d 32 5d 20 | 6f 63 63 75 72 2d 6d 6f |ouse-2] |occur-mo|
|00001a80| 64 65 2d 6d 6f 75 73 65 | 2d 67 6f 74 6f 20 22 03 |de-mouse|-goto ".|
|00001a90| 03 22 20 6f 63 63 75 72 | 2d 6d 6f 64 65 2d 67 6f |." occur|-mode-go|
|00001aa0| 74 6f 2d 6f 63 63 75 72 | 72 65 6e 63 65 20 6f 63 |to-occur|rence oc|
|00001ab0| 63 75 72 2d 62 75 66 66 | 65 72 20 6f 63 63 75 72 |cur-buff|er occur|
|00001ac0| 2d 6e 6c 69 6e 65 73 20 | 6f 63 63 75 72 2d 70 6f |-nlines |occur-po|
|00001ad0| 73 2d 6c 69 73 74 5d 20 | 34 29 0a 28 64 65 66 61 |s-list] |4).(defa|
|00001ae0| 6c 69 61 73 20 27 6f 63 | 63 75 72 2d 6d 6f 64 65 |lias 'oc|cur-mode|
|00001af0| 20 23 5b 6e 69 6c 20 22 | c0 20 88 c1 5c 6e 21 88 | #[nil "|. ..\n!.|
|00001b00| c3 14 c5 16 06 c7 c8 21 | 88 c7 c9 21 88 c7 ca 21 |.......!|...!...!|
|00001b10| 88 cb cc 21 87 22 20 5b | 6b 69 6c 6c 2d 61 6c 6c |...!." [|kill-all|
|00001b20| 2d 6c 6f 63 61 6c 2d 76 | 61 72 69 61 62 6c 65 73 |-local-v|ariables|
|00001b30| 20 75 73 65 2d 6c 6f 63 | 61 6c 2d 6d 61 70 20 6f | use-loc|al-map o|
|00001b40| 63 63 75 72 2d 6d 6f 64 | 65 2d 6d 61 70 20 6f 63 |ccur-mod|e-map oc|
|00001b50| 63 75 72 2d 6d 6f 64 65 | 20 6d 61 6a 6f 72 2d 6d |cur-mode| major-m|
|00001b60| 6f 64 65 20 22 4f 63 63 | 75 72 22 20 6d 6f 64 65 |ode "Occ|ur" mode|
|00001b70| 2d 6e 61 6d 65 20 6d 61 | 6b 65 2d 6c 6f 63 61 6c |-name ma|ke-local|
|00001b80| 2d 76 61 72 69 61 62 6c | 65 20 6f 63 63 75 72 2d |-variabl|e occur-|
|00001b90| 62 75 66 66 65 72 20 6f | 63 63 75 72 2d 6e 6c 69 |buffer o|ccur-nli|
|00001ba0| 6e 65 73 20 6f 63 63 75 | 72 2d 70 6f 73 2d 6c 69 |nes occu|r-pos-li|
|00001bb0| 73 74 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 6f 63 63 |st run-h|ooks occ|
|00001bc0| 75 72 2d 6d 6f 64 65 2d | 68 6f 6f 6b 5d 20 32 20 |ur-mode-|hook] 2 |
|00001bd0| 22 5c 0a 4d 61 6a 6f 72 | 20 6d 6f 64 65 20 66 6f |"\.Major| mode fo|
|00001be0| 72 20 6f 75 74 70 75 74 | 20 66 72 6f 6d 20 5c 5c |r output| from \\|
|00001bf0| 5b 6f 63 63 75 72 5d 2e | 0a 4d 6f 76 65 20 70 6f |[occur].|.Move po|
|00001c00| 69 6e 74 20 74 6f 20 6f | 6e 65 20 6f 66 20 74 68 |int to o|ne of th|
|00001c10| 65 20 6f 63 63 75 72 72 | 65 6e 63 65 73 20 69 6e |e occurr|ences in|
|00001c20| 20 74 68 69 73 20 62 75 | 66 66 65 72 2c 0a 74 68 | this bu|ffer,.th|
|00001c30| 65 6e 20 75 73 65 20 5c | 5c 5b 6f 63 63 75 72 2d |en use \|\[occur-|
|00001c40| 6d 6f 64 65 2d 67 6f 74 | 6f 2d 6f 63 63 75 72 72 |mode-got|o-occurr|
|00001c50| 65 6e 63 65 5d 20 74 6f | 20 67 6f 20 74 6f 20 74 |ence] to| go to t|
|00001c60| 68 65 20 73 61 6d 65 20 | 6f 63 63 75 72 72 65 6e |he same |occurren|
|00001c70| 63 65 0a 69 6e 20 74 68 | 65 20 62 75 66 66 65 72 |ce.in th|e buffer|
|00001c80| 20 74 68 61 74 20 74 68 | 65 20 6f 63 63 75 72 72 | that th|e occurr|
|00001c90| 65 6e 63 65 73 20 77 65 | 72 65 20 66 6f 75 6e 64 |ences we|re found|
|00001ca0| 20 69 6e 2e 0a 4f 72 20 | 63 6c 69 63 6b 20 5c 5c | in..Or |click \\|
|00001cb0| 3c 6f 63 63 75 72 2d 6d | 6f 64 65 2d 6d 61 70 3e |<occur-m|ode-map>|
|00001cc0| 5c 5c 5b 6f 63 63 75 72 | 2d 6d 6f 64 65 2d 6d 6f |\\[occur|-mode-mo|
|00001cd0| 75 73 65 2d 67 6f 74 6f | 5d 20 6f 6e 20 61 6e 20 |use-goto|] on an |
|00001ce0| 6f 63 63 75 72 72 65 6e | 63 65 20 6c 69 6e 65 2e |occurren|ce line.|
|00001cf0| 0a 5c 5c 7b 6f 63 63 75 | 72 2d 6d 6f 64 65 2d 6d |.\\{occu|r-mode-m|
|00001d00| 61 70 7d 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |ap}"]).(|defalias|
|00001d10| 20 27 6f 63 63 75 72 2d | 6d 6f 64 65 2d 6d 6f 75 | 'occur-|mode-mou|
|00001d20| 73 65 2d 67 6f 74 6f 20 | 23 5b 28 65 76 65 6e 74 |se-goto |#[(event|
|00001d30| 29 20 22 c0 89 19 1a 8a | c3 5c 66 1c c5 5c 66 38 |) ".....|.\f..\f8|
|00001d40| 3a 83 13 00 c5 82 14 00 | c6 5c 66 38 29 89 1e 07 |:.......|.\f8)...|
|00001d50| 40 29 21 71 88 8a 5c 66 | 1c c5 5c 66 38 3a 83 2d |@)!q..\f|..\f8:.-|
|00001d60| 00 c5 82 2e 00 c6 5c 66 | 38 29 89 1e 07 41 40 3a |......\f|8)...A@:|
|00001d70| 83 42 00 0e 07 41 40 40 | 82 46 00 0e 07 41 40 29 |.B...A@@|.F...A@)|
|00001d80| 62 88 c8 20 11 0e 09 12 | 2a ca 5c 6e 21 88 cb 09 |b.. ....|*.\n!...|
|00001d90| 21 62 2a 87 22 20 5b 6e | 69 6c 20 70 6f 73 20 62 |!b*." [n|il pos b|
|00001da0| 75 66 66 65 72 20 77 69 | 6e 64 6f 77 2d 62 75 66 |uffer wi|ndow-buf|
|00001db0| 66 65 72 20 65 76 65 6e | 74 20 32 20 31 20 70 6f |fer even|t 2 1 po|
|00001dc0| 73 69 74 69 6f 6e 20 6f | 63 63 75 72 2d 6d 6f 64 |sition o|ccur-mod|
|00001dd0| 65 2d 66 69 6e 64 2d 6f | 63 63 75 72 72 65 6e 63 |e-find-o|ccurrenc|
|00001de0| 65 20 6f 63 63 75 72 2d | 62 75 66 66 65 72 20 70 |e occur-|buffer p|
|00001df0| 6f 70 2d 74 6f 2d 62 75 | 66 66 65 72 20 6d 61 72 |op-to-bu|ffer mar|
|00001e00| 6b 65 72 2d 70 6f 73 69 | 74 69 6f 6e 5d 20 34 20 |ker-posi|tion] 4 |
|00001e10| 22 5c 0a 49 6e 20 4f 63 | 63 75 72 20 6d 6f 64 65 |"\.In Oc|cur mode|
|00001e20| 2c 20 67 6f 20 74 6f 20 | 74 68 65 20 6f 63 63 75 |, go to |the occu|
|00001e30| 72 72 65 6e 63 65 20 77 | 68 6f 73 65 20 6c 69 6e |rrence w|hose lin|
|00001e40| 65 20 79 6f 75 20 63 6c | 69 63 6b 20 6f 6e 2e 22 |e you cl|ick on."|
|00001e50| 20 22 65 22 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 | "e"]).(|defalias|
|00001e60| 20 28 71 75 6f 74 65 20 | 6f 63 63 75 72 2d 6d 6f | (quote |occur-mo|
|00001e70| 64 65 2d 66 69 6e 64 2d | 6f 63 63 75 72 72 65 6e |de-find-|occurren|
|00001e80| 63 65 29 20 23 5b 6e 69 | 6c 20 22 08 83 5c 6e 00 |ce) #[ni|l "..\n.|
|00001e90| c1 08 21 84 12 00 c2 10 | c2 13 c4 c5 21 88 c6 65 |..!.....|....!..e|
|00001ea0| 8a c7 79 88 60 29 5c 22 | 1e 08 8a c7 79 88 0e 08 |..y.`)\"|....y...|
|00001eb0| 53 0e 09 c7 57 83 32 00 | ca 0e 09 5a 82 43 00 0e |S...W.2.|...Z.C..|
|00001ec0| 09 c7 56 83 42 00 0e 09 | 89 5c 5c ca 5c 5c 82 43 |..V.B...|.\\.\\.C|
|00001ed0| 00 cb a5 29 89 1e 5c 66 | 0b 38 1e 0d 0e 08 cb 57 |...)..\f|.8.....W|
|00001ee0| 83 57 00 c4 ce 21 88 0e | 0d 84 60 00 c4 ce 21 88 |.W...!..|..`...!.|
|00001ef0| 0e 0d 2b 87 22 20 5b 6f | 63 63 75 72 2d 62 75 66 |..+." [o|ccur-buf|
|00001f00| 66 65 72 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 20 |fer buff|er-name |
|00001f10| 6e 69 6c 20 6f 63 63 75 | 72 2d 70 6f 73 2d 6c 69 |nil occu|r-pos-li|
|00001f20| 73 74 20 65 72 72 6f 72 | 20 22 42 75 66 66 65 72 |st error| "Buffer|
|00001f30| 20 69 6e 20 77 68 69 63 | 68 20 6f 63 63 75 72 72 | in whic|h occurr|
|00001f40| 65 6e 63 65 73 20 77 65 | 72 65 20 66 6f 75 6e 64 |ences we|re found|
|00001f50| 20 69 73 20 64 65 6c 65 | 74 65 64 22 20 63 6f 75 | is dele|ted" cou|
|00001f60| 6e 74 2d 6c 69 6e 65 73 | 20 30 20 6c 69 6e 65 2d |nt-lines| 0 line-|
|00001f70| 63 6f 75 6e 74 20 6f 63 | 63 75 72 2d 6e 6c 69 6e |count oc|cur-nlin|
|00001f80| 65 73 20 32 20 31 20 6f | 63 63 75 72 2d 6e 75 6d |es 2 1 o|ccur-num|
|00001f90| 62 65 72 20 70 6f 73 20 | 22 4e 6f 20 6f 63 63 75 |ber pos |"No occu|
|00001fa0| 72 72 65 6e 63 65 20 6f | 6e 20 74 68 69 73 20 6c |rrence o|n this l|
|00001fb0| 69 6e 65 22 5d 20 34 5d | 29 0a 28 64 65 66 61 6c |ine"] 4]|).(defal|
|00001fc0| 69 61 73 20 27 6f 63 63 | 75 72 2d 6d 6f 64 65 2d |ias 'occ|ur-mode-|
|00001fd0| 67 6f 74 6f 2d 6f 63 63 | 75 72 72 65 6e 63 65 20 |goto-occ|urrence |
|00001fe0| 23 5b 6e 69 6c 20 22 c0 | 20 19 c2 0b 21 88 c4 09 |#[nil ".| ...!...|
|00001ff0| 21 62 29 87 22 20 5b 6f | 63 63 75 72 2d 6d 6f 64 |!b)." [o|ccur-mod|
|00002000| 65 2d 66 69 6e 64 2d 6f | 63 63 75 72 72 65 6e 63 |e-find-o|ccurrenc|
|00002010| 65 20 70 6f 73 20 70 6f | 70 2d 74 6f 2d 62 75 66 |e pos po|p-to-buf|
|00002020| 66 65 72 20 6f 63 63 75 | 72 2d 62 75 66 66 65 72 |fer occu|r-buffer|
|00002030| 20 6d 61 72 6b 65 72 2d | 70 6f 73 69 74 69 6f 6e | marker-|position|
|00002040| 5d 20 32 20 22 5c 0a 47 | 6f 20 74 6f 20 74 68 65 |] 2 "\.G|o to the|
|00002050| 20 6f 63 63 75 72 72 65 | 6e 63 65 20 74 68 65 20 | occurre|nce the |
|00002060| 63 75 72 72 65 6e 74 20 | 6c 69 6e 65 20 64 65 73 |current |line des|
|00002070| 63 72 69 62 65 73 2e 22 | 20 6e 69 6c 5d 29 0a 28 |cribes."| nil]).(|
|00002080| 64 65 66 76 61 72 20 6c | 69 73 74 2d 6d 61 74 63 |defvar l|ist-matc|
|00002090| 68 69 6e 67 2d 6c 69 6e | 65 73 2d 64 65 66 61 75 |hing-lin|es-defau|
|000020a0| 6c 74 2d 63 6f 6e 74 65 | 78 74 2d 6c 69 6e 65 73 |lt-conte|xt-lines|
|000020b0| 20 30 20 22 5c 0a 2a 44 | 65 66 61 75 6c 74 20 6e | 0 "\.*D|efault n|
|000020c0| 75 6d 62 65 72 20 6f 66 | 20 63 6f 6e 74 65 78 74 |umber of| context|
|000020d0| 20 6c 69 6e 65 73 20 74 | 6f 20 69 6e 63 6c 75 64 | lines t|o includ|
|000020e0| 65 20 61 72 6f 75 6e 64 | 20 61 20 60 6c 69 73 74 |e around| a `list|
|000020f0| 2d 6d 61 74 63 68 69 6e | 67 2d 6c 69 6e 65 73 27 |-matchin|g-lines'|
|00002100| 0a 6d 61 74 63 68 2e 20 | 20 41 20 6e 65 67 61 74 |.match. | A negat|
|00002110| 69 76 65 20 6e 75 6d 62 | 65 72 20 6d 65 61 6e 73 |ive numb|er means|
|00002120| 20 74 6f 20 69 6e 63 6c | 75 64 65 20 74 68 61 74 | to incl|ude that|
|00002130| 20 6d 61 6e 79 20 6c 69 | 6e 65 73 20 62 65 66 6f | many li|nes befo|
|00002140| 72 65 20 74 68 65 20 6d | 61 74 63 68 2e 0a 41 20 |re the m|atch..A |
|00002150| 70 6f 73 69 74 69 76 65 | 20 6e 75 6d 62 65 72 20 |positive| number |
|00002160| 6d 65 61 6e 73 20 74 6f | 20 69 6e 63 6c 75 64 65 |means to| include|
|00002170| 20 74 68 61 74 20 6d 61 | 6e 79 20 6c 69 6e 65 73 | that ma|ny lines|
|00002180| 20 62 6f 74 68 20 62 65 | 66 6f 72 65 20 61 6e 64 | both be|fore and|
|00002190| 20 61 66 74 65 72 2e 22 | 29 0a 28 64 65 66 61 6c | after."|).(defal|
|000021a0| 69 61 73 20 28 71 75 6f | 74 65 20 6c 69 73 74 2d |ias (quo|te list-|
|000021b0| 6d 61 74 63 68 69 6e 67 | 2d 6c 69 6e 65 73 29 20 |matching|-lines) |
|000021c0| 28 71 75 6f 74 65 20 6f | 63 63 75 72 29 29 0a 28 |(quote o|ccur)).(|
|000021d0| 64 65 66 61 6c 69 61 73 | 20 27 6f 63 63 75 72 20 |defalias| 'occur |
|000021e0| 23 5b 28 72 65 67 65 78 | 70 20 26 6f 70 74 69 6f |#[(regex|p &optio|
|000021f0| 6e 61 6c 20 6e 6c 69 6e | 65 73 29 20 22 08 83 5c |nal nlin|es) "..\|
|00002200| 6e 00 c1 08 21 82 0b 00 | 5c 6e 10 c3 70 c4 65 c5 |n...!...|\n..p.e.|
|00002210| 20 1e 06 1e 07 1e 08 1e | 09 1e 5c 6e cb 90 8a 0e | .......|..\n....|
|00002220| 5c 66 71 88 cd 63 88 ce | 0e 0f 21 88 d0 d1 0e 09 |\fq..c..|..!.....|
|00002230| 21 d2 d3 b1 04 88 d4 20 | 88 0e 09 16 15 08 16 16 |!...... |........|
|00002240| d7 16 18 29 0e 09 0e 5c | 66 3d 83 4e 00 64 62 88 |...)...\|f=.N.db.|
|00002250| 8a d9 20 88 0e 07 64 55 | 84 7f 01 da 0e 0f d7 c3 |.. ...dU|........|
|00002260| 23 83 7f 01 db 94 62 88 | db 79 88 dc 20 1e 1d de |#.....b.|.y.. ...|
|00002270| 8e 0e 08 df 0e 07 60 5c | 22 5c 5c 16 08 2a 60 16 |......`\|"\\..*`.|
|00002280| 07 db 95 62 88 8a db 94 | 62 88 08 db 57 83 90 00 |...b....|b...W...|
|00002290| 08 82 92 00 08 5b 79 88 | 60 29 1e 20 8a db 95 62 |.....[y.|`). ...b|
|000022a0| 88 08 db 56 83 aa 00 08 | 54 79 88 82 ad 00 c4 79 |...V....|Ty.....y|
|000022b0| 88 60 29 1e 21 e2 e3 0e | 08 5c 22 1e 24 e5 0e 24 |.`).!...|.\".$..$|
|000022c0| 47 e6 5c 22 1e 27 d7 1e | 28 8a c5 20 89 16 28 60 |G.\".'..|(.. ..(`|
|000022d0| d7 93 88 0e 5c 66 71 88 | 0e 28 0e 18 42 16 18 0e |....\fq.|.(..B...|
|000022e0| 5c 6e 84 e6 00 e9 08 21 | 84 e6 00 ea 63 88 d7 16 |\n.....!|....c...|
|000022f0| 5c 6e eb 0e 09 0e 20 0e | 21 23 88 ec 0e 21 0e 20 |\n.... .|!#...!. |
|00002300| 5a 21 88 08 89 16 28 db | 56 83 15 01 0e 27 ed b1 |Z!....(.|V....'..|
|00002310| 02 88 c4 79 88 0e 28 53 | 89 16 28 82 fe 00 0e 08 |...y..(S|..(.....|
|00002320| 1e 2e 0e 06 60 db 95 db | 94 5a 5c 5c d7 93 88 60 |....`...|.Z\\...`|
|00002330| 0e 06 57 83 5d 01 0e 24 | 84 38 01 e2 e3 0e 2e 5c |..W.]..$|.8.....\|
|00002340| 22 16 24 0e 24 ed b1 02 | 88 ef 8a db 79 88 60 29 |".$.$...|....y.`)|
|00002350| 8a d7 7f 88 60 29 f0 f1 | 24 88 d7 16 24 c4 79 88 |....`)..|$...$.y.|
|00002360| 0e 2e 54 16 2e 82 25 01 | 29 0e 28 08 57 83 77 01 |..T...%.|).(.W.w.|
|00002370| 0e 27 ed b1 02 88 c4 79 | 88 0e 28 54 89 16 28 82 |.'.....y|..(T..(.|
|00002380| 60 01 29 c4 79 88 2d 82 | 52 00 0e 5c 66 71 88 0e |`.).y.-.|R..\fq..|
|00002390| 18 9f 16 18 74 85 92 01 | f2 f3 0e 18 47 5c 22 29 |....t...|....G\")|
|000023a0| 91 2d 87 22 20 5b 6e 6c | 69 6e 65 73 20 70 72 65 |.-." [nl|ines pre|
|000023b0| 66 69 78 2d 6e 75 6d 65 | 72 69 63 2d 76 61 6c 75 |fix-nume|ric-valu|
|000023c0| 65 20 6c 69 73 74 2d 6d | 61 74 63 68 69 6e 67 2d |e list-m|atching-|
|000023d0| 6c 69 6e 65 73 2d 64 65 | 66 61 75 6c 74 2d 63 6f |lines-de|fault-co|
|000023e0| 6e 74 65 78 74 2d 6c 69 | 6e 65 73 20 74 20 31 20 |ntext-li|nes t 1 |
|000023f0| 6d 61 6b 65 2d 6d 61 72 | 6b 65 72 20 66 69 6e 61 |make-mar|ker fina|
|00002400| 6c 2d 63 6f 6e 74 65 78 | 74 2d 73 74 61 72 74 20 |l-contex|t-start |
|00002410| 70 72 65 76 70 6f 73 20 | 6c 69 6e 65 6e 75 6d 20 |prevpos |linenum |
|00002420| 62 75 66 66 65 72 20 66 | 69 72 73 74 20 22 2a 4f |buffer f|irst "*O|
|00002430| 63 63 75 72 2a 22 20 73 | 74 61 6e 64 61 72 64 2d |ccur*" s|tandard-|
|00002440| 6f 75 74 70 75 74 20 22 | 4c 69 6e 65 73 20 6d 61 |output "|Lines ma|
|00002450| 74 63 68 69 6e 67 20 22 | 20 70 72 69 6e 31 20 72 |tching "| prin1 r|
|00002460| 65 67 65 78 70 20 22 20 | 69 6e 20 62 75 66 66 65 |egexp " |in buffe|
|00002470| 72 20 22 20 62 75 66 66 | 65 72 2d 6e 61 6d 65 20 |r " buff|er-name |
|00002480| 34 36 20 31 30 20 6f 63 | 63 75 72 2d 6d 6f 64 65 |46 10 oc|cur-mode|
|00002490| 20 6f 63 63 75 72 2d 62 | 75 66 66 65 72 20 6f 63 | occur-b|uffer oc|
|000024a0| 63 75 72 2d 6e 6c 69 6e | 65 73 20 6e 69 6c 20 6f |cur-nlin|es nil o|
|000024b0| 63 63 75 72 2d 70 6f 73 | 2d 6c 69 73 74 20 62 65 |ccur-pos|-list be|
|000024c0| 67 69 6e 6e 69 6e 67 2d | 6f 66 2d 62 75 66 66 65 |ginning-|of-buffe|
|000024d0| 72 20 72 65 2d 73 65 61 | 72 63 68 2d 66 6f 72 77 |r re-sea|rch-forw|
|000024e0| 61 72 64 20 30 20 6d 61 | 74 63 68 2d 64 61 74 61 |ard 0 ma|tch-data|
|000024f0| 20 6d 61 74 63 68 2d 64 | 61 74 61 20 28 28 73 74 | match-d|ata ((st|
|00002500| 6f 72 65 2d 6d 61 74 63 | 68 2d 64 61 74 61 20 6d |ore-matc|h-data m|
|00002510| 61 74 63 68 2d 64 61 74 | 61 29 29 20 63 6f 75 6e |atch-dat|a)) coun|
|00002520| 74 2d 6c 69 6e 65 73 20 | 73 74 61 72 74 20 65 6e |t-lines |start en|
|00002530| 64 20 66 6f 72 6d 61 74 | 20 22 25 33 64 22 20 74 |d format| "%3d" t|
|00002540| 61 67 20 6d 61 6b 65 2d | 73 74 72 69 6e 67 20 33 |ag make-|string 3|
|00002550| 32 20 65 6d 70 74 79 20 | 74 65 6d 20 7a 65 72 6f |2 empty |tem zero|
|00002560| 70 20 22 2d 2d 2d 2d 2d | 2d 2d 2d 5c 6e 22 20 69 |p "-----|---\n" i|
|00002570| 6e 73 65 72 74 2d 62 75 | 66 66 65 72 2d 73 75 62 |nsert-bu|ffer-sub|
|00002580| 73 74 72 69 6e 67 20 62 | 61 63 6b 77 61 72 64 2d |string b|ackward-|
|00002590| 63 68 61 72 20 35 38 20 | 74 68 69 73 2d 6c 69 6e |char 58 |this-lin|
|000025a0| 65 6e 75 6d 20 70 75 74 | 2d 74 65 78 74 2d 70 72 |enum put|-text-pr|
|000025b0| 6f 70 65 72 74 79 20 6d | 6f 75 73 65 2d 66 61 63 |operty m|ouse-fac|
|000025c0| 65 20 68 69 67 68 6c 69 | 67 68 74 20 6d 65 73 73 |e highli|ght mess|
|000025d0| 61 67 65 20 22 25 64 20 | 6d 61 74 63 68 69 6e 67 |age "%d |matching|
|000025e0| 20 6c 69 6e 65 73 2e 22 | 5d 20 37 20 22 5c 0a 53 | lines."|] 7 "\.S|
|000025f0| 68 6f 77 20 61 6c 6c 20 | 6c 69 6e 65 73 20 69 6e |how all |lines in|
|00002600| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 62 75 66 | the cur|rent buf|
|00002610| 66 65 72 20 63 6f 6e 74 | 61 69 6e 69 6e 67 20 61 |fer cont|aining a|
|00002620| 20 6d 61 74 63 68 20 66 | 6f 72 20 52 45 47 45 58 | match f|or REGEX|
|00002630| 50 2e 0a 0a 49 66 20 61 | 20 6d 61 74 63 68 20 73 |P...If a| match s|
|00002640| 70 72 65 61 64 73 20 61 | 63 72 6f 73 73 20 6d 75 |preads a|cross mu|
|00002650| 6c 74 69 70 6c 65 20 6c | 69 6e 65 73 2c 20 61 6c |ltiple l|ines, al|
|00002660| 6c 20 74 68 6f 73 65 20 | 6c 69 6e 65 73 20 61 72 |l those |lines ar|
|00002670| 65 20 73 68 6f 77 6e 2e | 0a 0a 45 61 63 68 20 6c |e shown.|..Each l|
|00002680| 69 6e 65 20 69 73 20 64 | 69 73 70 6c 61 79 65 64 |ine is d|isplayed|
|00002690| 20 77 69 74 68 20 4e 4c | 49 4e 45 53 20 6c 69 6e | with NL|INES lin|
|000026a0| 65 73 20 62 65 66 6f 72 | 65 20 61 6e 64 20 61 66 |es befor|e and af|
|000026b0| 74 65 72 2c 20 6f 72 20 | 2d 4e 4c 49 4e 45 53 0a |ter, or |-NLINES.|
|000026c0| 62 65 66 6f 72 65 20 69 | 66 20 4e 4c 49 4e 45 53 |before i|f NLINES|
|000026d0| 20 69 73 20 6e 65 67 61 | 74 69 76 65 2e 0a 4e 4c | is nega|tive..NL|
|000026e0| 49 4e 45 53 20 64 65 66 | 61 75 6c 74 73 20 74 6f |INES def|aults to|
|000026f0| 20 60 6c 69 73 74 2d 6d | 61 74 63 68 69 6e 67 2d | `list-m|atching-|
|00002700| 6c 69 6e 65 73 2d 64 65 | 66 61 75 6c 74 2d 63 6f |lines-de|fault-co|
|00002710| 6e 74 65 78 74 2d 6c 69 | 6e 65 73 27 2e 0a 49 6e |ntext-li|nes'..In|
|00002720| 74 65 72 61 63 74 69 76 | 65 6c 79 20 69 74 20 69 |teractiv|ely it i|
|00002730| 73 20 74 68 65 20 70 72 | 65 66 69 78 20 61 72 67 |s the pr|efix arg|
|00002740| 2e 0a 0a 54 68 65 20 6c | 69 6e 65 73 20 61 72 65 |...The l|ines are|
|00002750| 20 73 68 6f 77 6e 20 69 | 6e 20 61 20 62 75 66 66 | shown i|n a buff|
|00002760| 65 72 20 6e 61 6d 65 64 | 20 60 2a 4f 63 63 75 72 |er named| `*Occur|
|00002770| 2a 27 2e 0a 49 74 20 73 | 65 72 76 65 73 20 61 73 |*'..It s|erves as|
|00002780| 20 61 20 6d 65 6e 75 20 | 74 6f 20 66 69 6e 64 20 | a menu |to find |
|00002790| 61 6e 79 20 6f 66 20 74 | 68 65 20 6f 63 63 75 72 |any of t|he occur|
|000027a0| 72 65 6e 63 65 73 20 69 | 6e 20 74 68 69 73 20 62 |rences i|n this b|
|000027b0| 75 66 66 65 72 2e 0a 5c | 5c 5b 64 65 73 63 72 69 |uffer..\|\[descri|
|000027c0| 62 65 2d 6d 6f 64 65 5d | 20 69 6e 20 74 68 61 74 |be-mode]| in that|
|000027d0| 20 62 75 66 66 65 72 20 | 77 69 6c 6c 20 65 78 70 | buffer |will exp|
|000027e0| 6c 61 69 6e 20 68 6f 77 | 2e 22 20 28 6c 69 73 74 |lain how|." (list|
|000027f0| 20 28 6c 65 74 2a 20 28 | 28 64 65 66 61 75 6c 74 | (let* (|(default|
|00002800| 20 28 63 61 72 20 72 65 | 67 65 78 70 2d 68 69 73 | (car re|gexp-his|
|00002810| 74 6f 72 79 29 29 20 28 | 69 6e 70 75 74 20 28 72 |tory)) (|input (r|
|00002820| 65 61 64 2d 66 72 6f 6d | 2d 6d 69 6e 69 62 75 66 |ead-from|-minibuf|
|00002830| 66 65 72 20 28 69 66 20 | 64 65 66 61 75 6c 74 20 |fer (if |default |
|00002840| 28 66 6f 72 6d 61 74 20 | 22 4c 69 73 74 20 6c 69 |(format |"List li|
|00002850| 6e 65 73 20 6d 61 74 63 | 68 69 6e 67 20 72 65 67 |nes matc|hing reg|
|00002860| 65 78 70 20 28 64 65 66 | 61 75 6c 74 20 60 25 73 |exp (def|ault `%s|
|00002870| 27 29 3a 20 22 20 64 65 | 66 61 75 6c 74 29 20 22 |'): " de|fault) "|
|00002880| 4c 69 73 74 20 6c 69 6e | 65 73 20 6d 61 74 63 68 |List lin|es match|
|00002890| 69 6e 67 20 72 65 67 65 | 78 70 3a 20 22 29 20 6e |ing rege|xp: ") n|
|000028a0| 69 6c 20 6e 69 6c 20 6e | 69 6c 20 28 71 75 6f 74 |il nil n|il (quot|
|000028b0| 65 20 72 65 67 65 78 70 | 2d 68 69 73 74 6f 72 79 |e regexp|-history|
|000028c0| 29 29 29 29 20 28 69 66 | 20 28 3e 20 28 6c 65 6e |)))) (if| (> (len|
|000028d0| 67 74 68 20 69 6e 70 75 | 74 29 20 30 29 20 69 6e |gth inpu|t) 0) in|
|000028e0| 70 75 74 20 28 73 65 74 | 63 61 72 20 72 65 67 65 |put (set|car rege|
|000028f0| 78 70 2d 68 69 73 74 6f | 72 79 20 64 65 66 61 75 |xp-histo|ry defau|
|00002900| 6c 74 29 29 29 20 63 75 | 72 72 65 6e 74 2d 70 72 |lt))) cu|rrent-pr|
|00002910| 65 66 69 78 2d 61 72 67 | 29 5d 29 0a 28 64 65 66 |efix-arg|)]).(def|
|00002920| 63 6f 6e 73 74 20 71 75 | 65 72 79 2d 72 65 70 6c |const qu|ery-repl|
|00002930| 61 63 65 2d 68 65 6c 70 | 20 22 54 79 70 65 20 53 |ace-help| "Type S|
|00002940| 70 61 63 65 20 6f 72 20 | 60 79 27 20 74 6f 20 72 |pace or |`y' to r|
|00002950| 65 70 6c 61 63 65 20 6f | 6e 65 20 6d 61 74 63 68 |eplace o|ne match|
|00002960| 2c 20 44 65 6c 65 74 65 | 20 6f 72 20 60 6e 27 20 |, Delete| or `n' |
|00002970| 74 6f 20 73 6b 69 70 20 | 74 6f 20 6e 65 78 74 2c |to skip |to next,|
|00002980| 5c 6e 52 45 54 20 6f 72 | 20 60 71 27 20 74 6f 20 |\nRET or| `q' to |
|00002990| 65 78 69 74 2c 20 50 65 | 72 69 6f 64 20 74 6f 20 |exit, Pe|riod to |
|000029a0| 72 65 70 6c 61 63 65 20 | 6f 6e 65 20 6d 61 74 63 |replace |one matc|
|000029b0| 68 20 61 6e 64 20 65 78 | 69 74 2c 5c 6e 43 6f 6d |h and ex|it,\nCom|
|000029c0| 6d 61 20 74 6f 20 72 65 | 70 6c 61 63 65 20 62 75 |ma to re|place bu|
|000029d0| 74 20 6e 6f 74 20 6d 6f | 76 65 20 70 6f 69 6e 74 |t not mo|ve point|
|000029e0| 20 69 6d 6d 65 64 69 61 | 74 65 6c 79 2c 5c 6e 43 | immedia|tely,\nC|
|000029f0| 2d 72 20 74 6f 20 65 6e | 74 65 72 20 72 65 63 75 |-r to en|ter recu|
|00002a00| 72 73 69 76 65 20 65 64 | 69 74 20 28 5c 5c 5b 65 |rsive ed|it (\\[e|
|00002a10| 78 69 74 2d 72 65 63 75 | 72 73 69 76 65 2d 65 64 |xit-recu|rsive-ed|
|00002a20| 69 74 5d 20 74 6f 20 67 | 65 74 20 6f 75 74 20 61 |it] to g|et out a|
|00002a30| 67 61 69 6e 29 2c 5c 6e | 43 2d 77 20 74 6f 20 64 |gain),\n|C-w to d|
|00002a40| 65 6c 65 74 65 20 6d 61 | 74 63 68 20 61 6e 64 20 |elete ma|tch and |
|00002a50| 72 65 63 75 72 73 69 76 | 65 20 65 64 69 74 2c 5c |recursiv|e edit,\|
|00002a60| 6e 43 2d 6c 20 74 6f 20 | 63 6c 65 61 72 20 74 68 |nC-l to |clear th|
|00002a70| 65 20 73 63 72 65 65 6e | 2c 20 72 65 64 69 73 70 |e screen|, redisp|
|00002a80| 6c 61 79 2c 20 61 6e 64 | 20 6f 66 66 65 72 20 73 |lay, and| offer s|
|00002a90| 61 6d 65 20 72 65 70 6c | 61 63 65 6d 65 6e 74 20 |ame repl|acement |
|00002aa0| 61 67 61 69 6e 2c 5c 6e | 21 20 74 6f 20 72 65 70 |again,\n|! to rep|
|00002ab0| 6c 61 63 65 20 61 6c 6c | 20 72 65 6d 61 69 6e 69 |lace all| remaini|
|00002ac0| 6e 67 20 6d 61 74 63 68 | 65 73 20 77 69 74 68 20 |ng match|es with |
|00002ad0| 6e 6f 20 6d 6f 72 65 20 | 71 75 65 73 74 69 6f 6e |no more |question|
|00002ae0| 73 2c 5c 6e 5e 20 74 6f | 20 6d 6f 76 65 20 70 6f |s,\n^ to| move po|
|00002af0| 69 6e 74 20 62 61 63 6b | 20 74 6f 20 70 72 65 76 |int back| to prev|
|00002b00| 69 6f 75 73 20 6d 61 74 | 63 68 2e 22 20 22 5c 0a |ious mat|ch." "\.|
|00002b10| 48 65 6c 70 20 6d 65 73 | 73 61 67 65 20 77 68 69 |Help mes|sage whi|
|00002b20| 6c 65 20 69 6e 20 71 75 | 65 72 79 2d 72 65 70 6c |le in qu|ery-repl|
|00002b30| 61 63 65 22 29 0a 28 64 | 65 66 76 61 72 20 71 75 |ace").(d|efvar qu|
|00002b40| 65 72 79 2d 72 65 70 6c | 61 63 65 2d 6d 61 70 20 |ery-repl|ace-map |
|00002b50| 28 6d 61 6b 65 2d 73 70 | 61 72 73 65 2d 6b 65 79 |(make-sp|arse-key|
|00002b60| 6d 61 70 29 20 22 5c 0a | 4b 65 79 6d 61 70 20 74 |map) "\.|Keymap t|
|00002b70| 68 61 74 20 64 65 66 69 | 6e 65 73 20 74 68 65 20 |hat defi|nes the |
|00002b80| 72 65 73 70 6f 6e 73 65 | 73 20 74 6f 20 71 75 65 |response|s to que|
|00002b90| 73 74 69 6f 6e 73 20 69 | 6e 20 60 71 75 65 72 79 |stions i|n `query|
|00002ba0| 2d 72 65 70 6c 61 63 65 | 27 2e 0a 54 68 65 20 5c |-replace|'..The \|
|00002bb0| 22 62 69 6e 64 69 6e 67 | 73 5c 22 20 69 6e 20 74 |"binding|s\" in t|
|00002bc0| 68 69 73 20 6d 61 70 20 | 61 72 65 20 6e 6f 74 20 |his map |are not |
|00002bd0| 63 6f 6d 6d 61 6e 64 73 | 3b 20 74 68 65 79 20 61 |commands|; they a|
|00002be0| 72 65 20 61 6e 73 77 65 | 72 73 2e 0a 54 68 65 20 |re answe|rs..The |
|00002bf0| 76 61 6c 69 64 20 61 6e | 73 77 65 72 73 20 69 6e |valid an|swers in|
|00002c00| 63 6c 75 64 65 20 60 61 | 63 74 27 2c 20 60 73 6b |clude `a|ct', `sk|
|00002c10| 69 70 27 2c 20 60 61 63 | 74 2d 61 6e 64 2d 73 68 |ip', `ac|t-and-sh|
|00002c20| 6f 77 27 2c 0a 60 65 78 | 69 74 27 2c 20 60 61 63 |ow',.`ex|it', `ac|
|00002c30| 74 2d 61 6e 64 2d 65 78 | 69 74 27 2c 20 60 65 64 |t-and-ex|it', `ed|
|00002c40| 69 74 27 2c 20 60 64 65 | 6c 65 74 65 2d 61 6e 64 |it', `de|lete-and|
|00002c50| 2d 65 64 69 74 27 2c 20 | 60 72 65 63 65 6e 74 65 |-edit', |`recente|
|00002c60| 72 27 2c 0a 60 61 75 74 | 6f 6d 61 74 69 63 27 2c |r',.`aut|omatic',|
|00002c70| 20 60 62 61 63 6b 75 70 | 27 2c 20 61 6e 64 20 60 | `backup|', and `|
|00002c80| 68 65 6c 70 27 2e 22 29 | 0a 28 62 79 74 65 2d 63 |help'.")|.(byte-c|
|00002c90| 6f 64 65 20 22 c0 09 c2 | c3 23 88 c0 09 c4 c5 23 |ode "...|.#.....#|
|00002ca0| 88 c0 09 c6 c5 23 88 c0 | 09 c7 c5 23 88 c0 09 c8 |.....#..|...#....|
|00002cb0| c3 23 88 c0 09 c9 c5 23 | 88 c0 09 ca cb 23 88 c0 |.#.....#|.....#..|
|00002cc0| 09 cc cd 23 88 c0 09 ce | cd 23 88 c0 09 cf cd 23 |...#....|.#.....#|
|00002cd0| 88 c0 09 d0 d1 23 88 c0 | 09 d2 d3 23 88 c0 09 d4 |.....#..|...#....|
|00002ce0| d5 23 88 c0 09 d6 d7 23 | 88 c0 09 d8 d9 23 88 c0 |.#.....#|.....#..|
|00002cf0| 09 da db 23 88 c0 09 dc | dd 23 88 c0 09 de dd 23 |...#....|.#.....#|
|00002d00| 88 c0 09 df e0 23 88 c0 | 09 e1 e0 23 87 22 20 5b |.....#..|...#." [|
|00002d10| 64 65 66 69 6e 65 2d 6b | 65 79 20 71 75 65 72 79 |define-k|ey query|
|00002d20| 2d 72 65 70 6c 61 63 65 | 2d 6d 61 70 20 22 20 22 |-replace|-map " "|
|00002d30| 20 61 63 74 20 22 7f 22 | 20 73 6b 69 70 20 5b 64 | act "."| skip [d|
|00002d40| 65 6c 65 74 65 5d 20 5b | 62 61 63 6b 73 70 61 63 |elete] [|backspac|
|00002d50| 65 5d 20 22 79 22 20 22 | 6e 22 20 22 2c 22 20 61 |e] "y" "|n" "," a|
|00002d60| 63 74 2d 61 6e 64 2d 73 | 68 6f 77 20 22 71 22 20 |ct-and-s|how "q" |
|00002d70| 65 78 69 74 20 22 0d 22 | 20 5b 72 65 74 75 72 6e |exit "."| [return|
|00002d80| 5d 20 22 2e 22 20 61 63 | 74 2d 61 6e 64 2d 65 78 |] "." ac|t-and-ex|
|00002d90| 69 74 20 22 12 22 20 65 | 64 69 74 20 22 17 22 20 |it "." e|dit "." |
|00002da0| 64 65 6c 65 74 65 2d 61 | 6e 64 2d 65 64 69 74 20 |delete-a|nd-edit |
|00002db0| 22 5c 66 22 20 72 65 63 | 65 6e 74 65 72 20 22 21 |"\f" rec|enter "!|
|00002dc0| 22 20 61 75 74 6f 6d 61 | 74 69 63 20 22 5e 22 20 |" automa|tic "^" |
|00002dd0| 62 61 63 6b 75 70 20 22 | 08 22 20 68 65 6c 70 20 |backup "|." help |
|00002de0| 22 3f 22 20 22 07 22 20 | 71 75 69 74 20 22 1d 22 |"?" "." |quit "."|
|00002df0| 5d 20 34 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |] 4).(de|falias '|
|00002e00| 70 65 72 66 6f 72 6d 2d | 72 65 70 6c 61 63 65 20 |perform-|replace |
|00002e10| 23 5b 28 66 72 6f 6d 2d | 73 74 72 69 6e 67 20 72 |#[(from-|string r|
|00002e20| 65 70 6c 61 63 65 6d 65 | 6e 74 73 20 71 75 65 72 |eplaceme|nts quer|
|00002e30| 79 2d 66 6c 61 67 20 72 | 65 67 65 78 70 2d 66 6c |y-flag r|egexp-fl|
|00002e40| 61 67 20 64 65 6c 69 6d | 69 74 65 64 2d 66 6c 61 |ag delim|ited-fla|
|00002e50| 67 20 26 6f 70 74 69 6f | 6e 61 6c 20 72 65 70 65 |g &optio|nal repe|
|00002e60| 61 74 2d 63 6f 75 6e 74 | 20 6d 61 70 29 20 22 08 |at-count| map) ".|
|00002e70| 84 06 00 09 10 5c 6e 85 | 12 00 0b 85 12 00 5c 66 |.....\n.|......\f|
|00002e80| 89 97 98 3f 0d 3f 0d 83 | 1d 00 c6 82 1e 00 c7 5c |...?.?..|.......\|
|00002e90| 66 c8 89 c9 ca c8 c9 89 | c8 ca 0e 0b 85 30 00 cc |f.......|.....0..|
|00002ea0| cd 21 1e 0e 1e 0f 1e 10 | 1e 11 1e 12 1e 13 1e 14 |.!......|........|
|00002eb0| 1e 15 1e 16 1e 17 1e 18 | 1e 19 1e 1a 1e 1b 0e 1c |........|........|
|00002ec0| 3b 83 59 00 0e 1c 16 16 | 82 61 00 0e 1d 84 61 00 |;.Y.....|.a....a.|
|00002ed0| de 16 1d 0e 1f 83 79 00 | c6 16 19 e0 0d 83 72 00 |......y.|......r.|
|00002ee0| 5c 66 82 75 00 e1 5c 66 | 21 e0 51 16 18 e2 20 88 |\f.u..\f|!.Q... .|
|00002ef0| e3 20 88 e4 8e 0e 14 83 | e4 02 6d 84 e4 02 0e 19 |. ......|..m.....|
|00002f00| 0e 18 c8 ca 23 83 e4 02 | 0e 10 60 3d 84 ac 00 0d |....#...|..`=....|
|00002f10| 83 bd 00 0e 10 c9 94 3d | 83 bd 00 0e 0f 84 bd 00 |.......=|........|
|00002f20| 6d 84 e4 02 de 75 88 0e | 19 0e 18 c8 ca 23 82 be |m....u..|.....#..|
|00002f30| 00 ca 83 e4 02 e5 20 16 | 17 0d 83 cf 00 e6 0e 18 |...... .|........|
|00002f40| 21 16 0f 0e 1c 3c 83 f4 | 00 0e 12 0e 11 55 83 f4 |!....<..|.....U..|
|00002f50| 00 0e 12 0e 1d 5c 5c 16 | 12 0e 15 0e 1c 38 16 16 |.....\\.|.....8..|
|00002f60| 0e 15 54 0e 1c 47 a6 16 | 15 0e 0b 84 0f 01 e7 0e |..T..G..|........|
|00002f70| 17 21 88 e8 0e 16 0e 1b | 0e 1a 23 88 0e 11 54 16 |.!......|..#...T.|
|00002f80| 11 82 de 02 e3 20 88 c8 | 89 89 89 1e 29 1e 2a 1e |..... ..|....).*.|
|00002f90| 2b 1e 2c 0e 2c 84 be 02 | ed c9 94 c9 95 5c 22 88 |+.,.,...|.....\".|
|00002fa0| ce 0e 0e 5c 66 0e 16 23 | 88 ee 20 16 2a ef 0e 2a |...\f..#|.. .*..*|
|00002fb0| 21 16 2a f0 08 0e 2a 5c | 22 16 29 e7 0e 17 21 88 |!.*...*\|".)...!.|
|00002fc0| 0e 29 f1 3d 83 6d 01 f2 | 90 f3 f4 0d 83 5b 01 f5 |.).=.m..|.....[..|
|00002fd0| 82 5c 5c 01 f6 5c 66 f7 | 0e 16 f8 cc 0e 39 21 b0 |.\\..\f.|.....9!.|
|00002fe0| 07 21 91 88 82 1e 01 0e | 29 fa 3d 83 7e 01 c8 16 |.!......|).=.~...|
|00002ff0| 14 ca 89 16 2c 82 20 01 | 0e 29 fb 3d 83 be 01 0e |....,. .|.).=....|
|00003000| 13 83 ad 01 0e 13 40 89 | 1e 3c 40 62 88 0e 3c 41 |......@.|.<@b..<A|
|00003010| ca 3d 89 16 2b 84 a4 01 | e7 0e 3c 41 21 88 0e 13 |.=..+...|..<A!...|
|00003020| 41 16 13 29 82 1e 01 ce | fd 21 88 fe ff 21 88 81 |A..)....|.!...!..|
|00003030| 40 00 de 21 88 82 1e 01 | 0e 29 81 41 00 3d 83 de |@..!....|.).A.=..|
|00003040| 01 0e 2b 84 d5 01 e8 0e | 16 0e 1b 0e 1a 23 88 ca |..+.....|.....#..|
|00003050| 16 2c ca 16 2b 82 1e 01 | 0e 29 81 42 00 3d 83 01 |.,..+...|.).B.=..|
|00003060| 02 0e 2b 84 f5 01 e8 0e | 16 0e 1b 0e 1a 23 88 c8 |..+.....|.....#..|
|00003070| 16 14 ca 16 2c ca 16 2b | 82 1e 01 0e 29 81 43 00 |....,..+|....).C.|
|00003080| 3d 83 1e 02 0e 2b 84 1e | 01 e8 0e 16 0e 1b 0e 1a |=....+..|........|
|00003090| 23 88 ca 16 2b 82 1e 01 | 0e 29 81 44 00 3d 83 41 |#...+...|.).D.=.A|
|000030a0| 02 0e 2b 84 35 02 e8 0e | 16 0e 1b 0e 1a 23 88 ca |..+.5...|.....#..|
|000030b0| 16 2c c8 16 0b ca 16 2b | 82 1e 01 0e 29 81 45 00 |.,.....+|....).E.|
|000030c0| 3d 83 51 02 ca 89 16 2c | 82 20 01 0e 29 81 46 00 |=.Q....,|. ..).F.|
|000030d0| 3d 83 63 02 81 46 00 c8 | 21 88 82 1e 01 0e 29 81 |=.c..F..|!.....).|
|000030e0| 47 00 3d 83 85 02 e7 e5 | 20 8a 81 48 00 20 88 29 |G.=.....| ..H. .)|
|000030f0| 21 88 0d 83 1e 01 e6 0e | 18 21 16 0f 82 1e 01 0e |!.......|.!......|
|00003100| 29 81 49 00 3d 83 a6 02 | c9 94 c9 95 7c 88 e7 e5 |).I.=...|....|...|
|00003110| 20 8a 81 48 00 20 88 29 | 21 88 ca 16 2b 82 1e 01 | ..H. .)|!...+...|
|00003120| c8 16 14 81 4a 00 81 4b | 00 0e 2a 21 0e 4c 5c 22 |....J..K|..*!.L\"|
|00003130| 16 4c ca 89 16 2c 83 23 | 01 60 0e 2b 86 cd 02 81 |.L...,.#|.`.+....|
|00003140| 4d 00 81 4e 00 e5 20 5c | 22 42 0e 13 42 16 13 0e |M..N.. \|"B..B...|
|00003150| 2b 83 dd 02 0e 11 54 16 | 11 2c 60 16 10 82 81 00 |+.....T.|.,`.....|
|00003160| 29 0e 14 85 ec 02 0e 13 | 2e 0e 87 22 20 5b 6d 61 |).......|..." [ma|
|00003170| 70 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 2d |p query-|replace-|
|00003180| 6d 61 70 20 63 61 73 65 | 2d 66 6f 6c 64 2d 73 65 |map case|-fold-se|
|00003190| 61 72 63 68 20 63 61 73 | 65 2d 72 65 70 6c 61 63 |arch cas|e-replac|
|000031a0| 65 20 66 72 6f 6d 2d 73 | 74 72 69 6e 67 20 72 65 |e from-s|tring re|
|000031b0| 67 65 78 70 2d 66 6c 61 | 67 20 72 65 2d 73 65 61 |gexp-fla|g re-sea|
|000031c0| 72 63 68 2d 66 6f 72 77 | 61 72 64 20 73 65 61 72 |rch-forw|ard sear|
|000031d0| 63 68 2d 66 6f 72 77 61 | 72 64 20 6e 69 6c 20 30 |ch-forwa|rd nil 0|
|000031e0| 20 74 20 71 75 65 72 79 | 2d 66 6c 61 67 20 73 75 | t query|-flag su|
|000031f0| 62 73 74 69 74 75 74 65 | 2d 63 6f 6d 6d 61 6e 64 |bstitute|-command|
|00003200| 2d 6b 65 79 73 20 22 51 | 75 65 72 79 20 72 65 70 |-keys "Q|uery rep|
|00003210| 6c 61 63 69 6e 67 20 25 | 73 20 77 69 74 68 20 25 |lacing %|s with %|
|00003220| 73 3a 20 28 5c 5c 3c 71 | 75 65 72 79 2d 72 65 70 |s: (\\<q|uery-rep|
|00003230| 6c 61 63 65 2d 6d 61 70 | 3e 5c 5c 5b 68 65 6c 70 |lace-map|>\\[help|
|00003240| 5d 20 66 6f 72 20 68 65 | 6c 70 29 20 22 20 6d 65 |] for he|lp) " me|
|00003250| 73 73 61 67 65 20 6d 61 | 74 63 68 2d 61 67 61 69 |ssage ma|tch-agai|
|00003260| 6e 20 6c 61 73 74 72 65 | 70 6c 20 72 65 70 6c 61 |n lastre|pl repla|
|00003270| 63 65 2d 63 6f 75 6e 74 | 20 6e 65 78 74 2d 72 6f |ce-count| next-ro|
|00003280| 74 61 74 65 2d 63 6f 75 | 6e 74 20 73 74 61 63 6b |tate-cou|nt stack|
|00003290| 20 6b 65 65 70 2d 67 6f | 69 6e 67 20 72 65 70 6c | keep-go|ing repl|
|000032a0| 61 63 65 6d 65 6e 74 2d | 69 6e 64 65 78 20 6e 65 |acement-|index ne|
|000032b0| 78 74 2d 72 65 70 6c 61 | 63 65 6d 65 6e 74 20 72 |xt-repla|cement r|
|000032c0| 65 61 6c 2d 6d 61 74 63 | 68 2d 64 61 74 61 20 73 |eal-matc|h-data s|
|000032d0| 65 61 72 63 68 2d 73 74 | 72 69 6e 67 20 73 65 61 |earch-st|ring sea|
|000032e0| 72 63 68 2d 66 75 6e 63 | 74 69 6f 6e 20 6c 69 74 |rch-func|tion lit|
|000032f0| 65 72 61 6c 20 6e 6f 63 | 61 73 69 66 79 20 72 65 |eral noc|asify re|
|00003300| 70 6c 61 63 65 6d 65 6e | 74 73 20 72 65 70 65 61 |placemen|ts repea|
|00003310| 74 2d 63 6f 75 6e 74 20 | 31 20 64 65 6c 69 6d 69 |t-count |1 delimi|
|00003320| 74 65 64 2d 66 6c 61 67 | 20 22 5c 5c 62 22 20 72 |ted-flag| "\\b" r|
|00003330| 65 67 65 78 70 2d 71 75 | 6f 74 65 20 70 75 73 68 |egexp-qu|ote push|
|00003340| 2d 6d 61 72 6b 20 75 6e | 64 6f 2d 62 6f 75 6e 64 |-mark un|do-bound|
|00003350| 61 72 79 20 28 28 72 65 | 70 6c 61 63 65 2d 64 65 |ary ((re|place-de|
|00003360| 68 69 67 68 6c 69 67 68 | 74 29 29 20 6d 61 74 63 |highligh|t)) matc|
|00003370| 68 2d 64 61 74 61 20 6c | 6f 6f 6b 69 6e 67 2d 61 |h-data l|ooking-a|
|00003380| 74 20 73 74 6f 72 65 2d | 6d 61 74 63 68 2d 64 61 |t store-|match-da|
|00003390| 74 61 20 72 65 70 6c 61 | 63 65 2d 6d 61 74 63 68 |ta repla|ce-match|
|000033a0| 20 64 65 66 20 6b 65 79 | 20 72 65 70 6c 61 63 65 | def key| replace|
|000033b0| 64 20 64 6f 6e 65 20 72 | 65 70 6c 61 63 65 2d 68 |d done r|eplace-h|
|000033c0| 69 67 68 6c 69 67 68 74 | 20 72 65 61 64 2d 65 76 |ighlight| read-ev|
|000033d0| 65 6e 74 20 76 65 63 74 | 6f 72 20 6c 6f 6f 6b 75 |ent vect|or looku|
|000033e0| 70 2d 6b 65 79 20 68 65 | 6c 70 20 22 2a 48 65 6c |p-key he|lp "*Hel|
|000033f0| 70 2a 22 20 70 72 69 6e | 63 20 22 51 75 65 72 79 |p*" prin|c "Query|
|00003400| 20 72 65 70 6c 61 63 69 | 6e 67 20 22 20 22 72 65 | replaci|ng " "re|
|00003410| 67 65 78 70 20 22 20 22 | 22 20 22 20 77 69 74 68 |gexp " "|" " with|
|00003420| 20 22 20 22 2e 5c 6e 5c | 6e 22 20 71 75 65 72 79 | " ".\n\|n" query|
|00003430| 2d 72 65 70 6c 61 63 65 | 2d 68 65 6c 70 20 65 78 |-replace|-help ex|
|00003440| 69 74 20 62 61 63 6b 75 | 70 20 65 6c 74 20 22 4e |it backu|p elt "N|
|00003450| 6f 20 70 72 65 76 69 6f | 75 73 20 6d 61 74 63 68 |o previo|us match|
|00003460| 22 20 64 69 6e 67 20 6e | 6f 2d 74 65 72 6d 69 6e |" ding n|o-termin|
|00003470| 61 74 65 20 73 69 74 2d | 66 6f 72 20 61 63 74 20 |ate sit-|for act |
|00003480| 61 63 74 2d 61 6e 64 2d | 65 78 69 74 20 61 63 74 |act-and-|exit act|
|00003490| 2d 61 6e 64 2d 73 68 6f | 77 20 61 75 74 6f 6d 61 |-and-sho|w automa|
|000034a0| 74 69 63 20 73 6b 69 70 | 20 72 65 63 65 6e 74 65 |tic skip| recente|
|000034b0| 72 20 65 64 69 74 20 72 | 65 63 75 72 73 69 76 65 |r edit r|ecursive|
|000034c0| 2d 65 64 69 74 20 64 65 | 6c 65 74 65 2d 61 6e 64 |-edit de|lete-and|
|000034d0| 2d 65 64 69 74 20 61 70 | 70 65 6e 64 20 6c 69 73 |-edit ap|pend lis|
|000034e0| 74 69 66 79 2d 6b 65 79 | 2d 73 65 71 75 65 6e 63 |tify-key|-sequenc|
|000034f0| 65 20 75 6e 72 65 61 64 | 2d 63 6f 6d 6d 61 6e 64 |e unread|-command|
|00003500| 2d 65 76 65 6e 74 73 20 | 6d 61 70 63 61 72 20 23 |-events |mapcar #|
|00003510| 5b 28 65 6c 74 29 20 22 | 08 85 5c 66 00 c1 08 21 |[(elt) "|..\f...!|
|00003520| 08 c2 89 93 88 87 22 20 | 5b 65 6c 74 20 6d 61 72 |......" |[elt mar|
|00003530| 6b 65 72 2d 70 6f 73 69 | 74 69 6f 6e 20 6e 69 6c |ker-posi|tion nil|
|00003540| 5d 20 34 5d 5d 20 31 36 | 20 22 5c 0a 53 75 62 72 |] 4]] 16| "\.Subr|
|00003550| 6f 75 74 69 6e 65 20 6f | 66 20 60 71 75 65 72 79 |outine o|f `query|
|00003560| 2d 72 65 70 6c 61 63 65 | 27 2e 20 20 49 74 73 20 |-replace|'. Its |
|00003570| 63 6f 6d 70 6c 65 78 69 | 74 79 20 68 61 6e 64 6c |complexi|ty handl|
|00003580| 65 73 20 69 6e 74 65 72 | 61 63 74 69 76 65 20 71 |es inter|active q|
|00003590| 75 65 72 69 65 73 2e 0a | 44 6f 6e 27 74 20 75 73 |ueries..|Don't us|
|000035a0| 65 20 74 68 69 73 20 69 | 6e 20 79 6f 75 72 20 6f |e this i|n your o|
|000035b0| 77 6e 20 70 72 6f 67 72 | 61 6d 20 75 6e 6c 65 73 |wn progr|am unles|
|000035c0| 73 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 71 75 |s you wa|nt to qu|
|000035d0| 65 72 79 20 61 6e 64 20 | 73 65 74 20 74 68 65 20 |ery and |set the |
|000035e0| 6d 61 72 6b 0a 6a 75 73 | 74 20 61 73 20 60 71 75 |mark.jus|t as `qu|
|000035f0| 65 72 79 2d 72 65 70 6c | 61 63 65 27 20 64 6f 65 |ery-repl|ace' doe|
|00003600| 73 2e 20 20 49 6e 73 74 | 65 61 64 2c 20 77 72 69 |s. Inst|ead, wri|
|00003610| 74 65 20 61 20 73 69 6d | 70 6c 65 20 6c 6f 6f 70 |te a sim|ple loop|
|00003620| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0a 20 20 28 77 | like th|is:. (w|
|00003630| 68 69 6c 65 20 28 72 65 | 2d 73 65 61 72 63 68 2d |hile (re|-search-|
|00003640| 66 6f 72 77 61 72 64 20 | 5c 22 66 6f 6f 5b 20 09 |forward |\"foo[ .|
|00003650| 5d 2b 62 61 72 5c 22 20 | 6e 69 6c 20 74 29 0a 20 |]+bar\" |nil t). |
|00003660| 20 20 20 28 72 65 70 6c | 61 63 65 2d 6d 61 74 63 | (repl|ace-matc|
|00003670| 68 20 5c 22 66 6f 6f 62 | 61 72 5c 22 20 6e 69 6c |h \"foob|ar\" nil|
|00003680| 20 6e 69 6c 29 29 0a 77 | 68 69 63 68 20 77 69 6c | nil)).w|hich wil|
|00003690| 6c 20 72 75 6e 20 66 61 | 73 74 65 72 20 61 6e 64 |l run fa|ster and|
|000036a0| 20 70 72 6f 62 61 62 6c | 79 20 64 6f 20 65 78 61 | probabl|y do exa|
|000036b0| 63 74 6c 79 20 77 68 61 | 74 20 79 6f 75 20 77 61 |ctly wha|t you wa|
|000036c0| 6e 74 2e 22 5d 29 0a 28 | 64 65 66 76 61 72 20 71 |nt."]).(|defvar q|
|000036d0| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 2d 68 69 67 |uery-rep|lace-hig|
|000036e0| 68 6c 69 67 68 74 20 6e | 69 6c 20 22 5c 0a 2a 4e |hlight n|il "\.*N|
|000036f0| 6f 6e 2d 6e 69 6c 20 6d | 65 61 6e 73 20 74 6f 20 |on-nil m|eans to |
|00003700| 68 69 67 68 6c 69 67 68 | 74 20 77 6f 72 64 73 20 |highligh|t words |
|00003710| 64 75 72 69 6e 67 20 71 | 75 65 72 79 20 72 65 70 |during q|uery rep|
|00003720| 6c 61 63 65 6d 65 6e 74 | 2e 22 29 0a 28 62 79 74 |lacement|.").(byt|
|00003730| 65 2d 63 6f 64 65 20 22 | c0 c1 21 84 08 00 c2 11 |e-code "|..!.....|
|00003740| c3 c4 c5 5c 22 88 c3 c6 | c7 5c 22 87 22 20 5b 62 |...\"...|.\"." [b|
|00003750| 6f 75 6e 64 70 20 72 65 | 70 6c 61 63 65 2d 6f 76 |oundp re|place-ov|
|00003760| 65 72 6c 61 79 20 6e 69 | 6c 20 64 65 66 61 6c 69 |erlay ni|l defali|
|00003770| 61 73 20 72 65 70 6c 61 | 63 65 2d 64 65 68 69 67 |as repla|ce-dehig|
|00003780| 68 6c 69 67 68 74 20 23 | 5b 6e 69 6c 20 22 08 85 |hlight #|[nil "..|
|00003790| 0b 00 c1 08 21 88 c2 89 | 10 87 22 20 5b 72 65 70 |....!...|.." [rep|
|000037a0| 6c 61 63 65 2d 6f 76 65 | 72 6c 61 79 20 64 65 6c |lace-ove|rlay del|
|000037b0| 65 74 65 2d 6f 76 65 72 | 6c 61 79 20 6e 69 6c 5d |ete-over|lay nil]|
|000037c0| 20 32 5d 20 72 65 70 6c | 61 63 65 2d 68 69 67 68 | 2] repl|ace-high|
|000037d0| 6c 69 67 68 74 20 23 5b | 28 73 74 61 72 74 20 65 |light #[|(start e|
|000037e0| 6e 64 29 20 22 08 85 23 | 00 09 84 1d 00 c2 0b 5c |nd) "..#|.......\|
|000037f0| 66 5c 22 11 c5 09 c6 c7 | c8 21 83 1a 00 c8 82 1b |f\".....|.!......|
|00003800| 00 c9 23 88 ca 09 0b 5c | 66 70 24 87 22 20 5b 71 |..#....\|fp$." [q|
|00003810| 75 65 72 79 2d 72 65 70 | 6c 61 63 65 2d 68 69 67 |uery-rep|lace-hig|
|00003820| 68 6c 69 67 68 74 20 72 | 65 70 6c 61 63 65 2d 6f |hlight r|eplace-o|
|00003830| 76 65 72 6c 61 79 20 6d | 61 6b 65 2d 6f 76 65 72 |verlay m|ake-over|
|00003840| 6c 61 79 20 73 74 61 72 | 74 20 65 6e 64 20 6f 76 |lay star|t end ov|
|00003850| 65 72 6c 61 79 2d 70 75 | 74 20 66 61 63 65 20 69 |erlay-pu|t face i|
|00003860| 6e 74 65 72 6e 61 6c 2d | 66 69 6e 64 2d 66 61 63 |nternal-|find-fac|
|00003870| 65 20 71 75 65 72 79 2d | 72 65 70 6c 61 63 65 20 |e query-|replace |
|00003880| 72 65 67 69 6f 6e 20 6d | 6f 76 65 2d 6f 76 65 72 |region m|ove-over|
|00003890| 6c 61 79 5d 20 35 5d 5d | 20 33 29 0a |lay] 5]]| 3). |
+--------+-------------------------+-------------------------+--------+--------+